aboutsummaryrefslogtreecommitdiff
path: root/scripts/lib.js
diff options
context:
space:
mode:
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 });