export const adaptDPI = (
    canvas: HTMLCanvasElement,
    width: number,
    height: number,
    dpr = window.devicePixelRatio || 1