aboutsummaryrefslogtreecommitdiff
path: root/scripts/lib.js
diff options
context:
space:
mode:
authorMetroWind <chris.corsair@gmail.com>2025-08-29 21:58:39 -0700
committerMetroWind <chris.corsair@gmail.com>2025-08-29 21:58:39 -0700
commit12fff735867d3984f7ff824b2a93b1093f8910d7 (patch)
tree8cf5d9b8e00de1cb5503d8f21c447a3ec9eef697 /scripts/lib.js
WIP
Diffstat (limited to 'scripts/lib.js')
-rw-r--r--scripts/lib.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/lib.js b/scripts/lib.js
new file mode 100644
index 0000000..4e4850e
--- /dev/null
+++ b/scripts/lib.js
@@ -0,0 +1,10 @@
1const h = preact.h;
2const CELL_SIZE = 32;
3const GRID_SIZE_X = 21;
4const GRID_SIZE_Y = 21;
5
6const ASSET_SVG_PROPS = {"width": CELL_SIZE, "height": CELL_SIZE,
7 "version": "1.1"};
8const ASSET_WHITE_BG = h("rect", {"x": 0, "y": 0, "width": CELL_SIZE,
9 "height": CELL_SIZE, "fill": "white",
10 "stroke-width": 0 });