summaryrefslogtreecommitdiff
path: root/tools/gencss.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-04-08 01:29:54 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:25 +0100
commite8a5f5410a0e876d889a2a8137c34bb925f65408 (patch)
tree8d891624db916cfaa6f0e5629e65d070874b58fd /tools/gencss.js
parent4bb51cd7884c3861446098ffca0750bddbfa833b (diff)
downloadrommel-in-the-desert-e8a5f5410a0e876d889a2a8137c34bb925f65408.tar.gz
Assets.
Diffstat (limited to 'tools/gencss.js')
-rw-r--r--tools/gencss.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gencss.js b/tools/gencss.js
new file mode 100644
index 0000000..4981d7c
--- /dev/null
+++ b/tools/gencss.js
@@ -0,0 +1,7 @@
+// let n = 51, u = 'px';
+let n = 100 / 9, u = '%';
+for (let i = 0; i < 94; ++i) {
+ let x = (i % 10) | 0;
+ let y = (i / 10) | 0;
+ console.log(`.unit.u${i}{background-position:${x*n}${u} ${y*n}${u}}`);
+}