aboutsummaryrefslogtreecommitdiff
path: root/scripts/lib.js
blob: 4e4850ebb6f397afc2837d759bc44d241effc425 (plain)
1
2
3
4
5
6
7
8
9
10
const h = preact.h;
const CELL_SIZE = 32;
const GRID_SIZE_X = 21;
const GRID_SIZE_Y = 21;

const ASSET_SVG_PROPS = {"width": CELL_SIZE, "height": CELL_SIZE,
                         "version": "1.1"};
const ASSET_WHITE_BG = h("rect", {"x": 0, "y": 0, "width": CELL_SIZE,
                                  "height": CELL_SIZE, "fill": "white",
                                  "stroke-width": 0 });