canvas = {
const ctx = DOM.context2d(width, height);
let pppx = devicePixelRatio || 1;
pppx = pppx_adjust;
ctx.fillStyle = "#ffffff";
ctx.fillRect(0, 0, width, height, 0.5);
ctx.strokeStyle = "#000000";
ctx.fillStyle = "#000000";
for (let y=0; y<height; y+=2/pppx) {
ctx.fillRect(0, y, width, 1/pppx);
}
ctx.fillStyle = midLevelGray;
ctx.fillRect(width/2, 0, width/2, height);
return ctx.canvas;
}