viewof canvas = {
const W = width * widthRatio, H = width * heightRatio;
const canvas = DOM.element('canvas');
canvas.width = W * devicePixelRatio;
canvas.height = H * devicePixelRatio;
canvas.style.width = W + 'px';
canvas.style.height = H + 'px';
canvas.value = canvas.getContext('2d')
canvas.value.scale(devicePixelRatio, devicePixelRatio);
return canvas;
}