diff options
author | MetroWind <chris.corsair@gmail.com> | 2025-08-29 21:58:39 -0700 |
---|---|---|
committer | MetroWind <chris.corsair@gmail.com> | 2025-08-29 21:58:39 -0700 |
commit | 12fff735867d3984f7ff824b2a93b1093f8910d7 (patch) | |
tree | 8cf5d9b8e00de1cb5503d8f21c447a3ec9eef697 /scripts/lib.js |
WIP
Diffstat (limited to 'scripts/lib.js')
-rw-r--r-- | scripts/lib.js | 10 |
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 @@ | |||
1 | const h = preact.h; | ||
2 | const CELL_SIZE = 32; | ||
3 | const GRID_SIZE_X = 21; | ||
4 | const GRID_SIZE_Y = 21; | ||
5 | |||
6 | const ASSET_SVG_PROPS = {"width": CELL_SIZE, "height": CELL_SIZE, | ||
7 | "version": "1.1"}; | ||
8 | const ASSET_WHITE_BG = h("rect", {"x": 0, "y": 0, "width": CELL_SIZE, | ||
9 | "height": CELL_SIZE, "fill": "white", | ||
10 | "stroke-width": 0 }); | ||