viewof canvas = {
const W = width, H = width * 2 / 3;
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
}