From 12fff735867d3984f7ff824b2a93b1093f8910d7 Mon Sep 17 00:00:00 2001 From: MetroWind Date: Fri, 29 Aug 2025 21:58:39 -0700 Subject: WIP --- scripts/lib.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/lib.js (limited to 'scripts/lib.js') 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 @@ +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 }); -- cgit v1.2.3-70-g09d2