class Grid {
constructor(array2d, iterator = (e, [x, y]) => {}) {
const canvas = html`<canvas>`;
const ctx = canvas.getContext("2d");
canvas.value = ctx;
const image = context.createImageData(array2d[0].length, array2d.length);
return canvas;
}
static from({ num_cols, num_rows }, iterator) {
return new Grid();
}
}