canvas = {
const context = DOM.context2d(w, h);
context.fillStyle = getColor(0);
context.fillRect(0, 0, w, h);
for (let c of cells) {
context.fillStyle = getColor(c.pop);
const pos = getPosition(c.GRD_ID);
const sPos = geoToScreen(pos);
context.fillRect(
sPos.x,
sPos.y,
resolution / view.z + 0.5,
-resolution / view.z - 0.5
);
}
return context.canvas;
}