summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-02 16:03:32 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-02 16:03:41 +0100
commit3b3fece21f8ab0e934f198f1f57a06a21600338c (patch)
tree503034217bf3f6ef025f1c7ffad9754e842faf0d /tools
parent26028ca0bc78c6ad351329548db34f4591cd87d5 (diff)
downloadvotes-for-women-3b3fece21f8ab0e934f198f1f57a06a21600338c.tar.gz
Dice images.
Diffstat (limited to 'tools')
-rw-r--r--tools/d4.svg16
-rw-r--r--tools/d6.svg19
-rw-r--r--tools/d8.svg23
-rw-r--r--tools/renderdice.sh9
4 files changed, 67 insertions, 0 deletions
diff --git a/tools/d4.svg b/tools/d4.svg
new file mode 100644
index 0000000..c54970d
--- /dev/null
+++ b/tools/d4.svg
@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="12">
+<defs>
+<path id="d4stroke" fill="#4397D4" stroke-linejoin="bevel" x-stroke="#000" d="M 0.5,6 3,1.5 9,1.5 11.5,6 9,10.5 3,10.5 Z" />
+<path id="d4" fill="#4397D4" d="M 0,6 3,1 9,1 12,6 9,11 3,11 Z" />
+</defs>
+<use xlink:href="#d4" x="0" y="0" />
+<use xlink:href="#d4" x="12" y="0" />
+<use xlink:href="#d4" x="24" y="0" />
+<use xlink:href="#d4" x="36" y="0" />
+<g font-size="7" fill="#FFF" font-family="B612 Mono" font-weight="bold" text-anchor="middle">
+<text x="6" y="8.5">1</text>
+<text x="18" y="8.5">2</text>
+<text x="30" y="8.5">3</text>
+<text x="42" y="8.5">4</text>
+</g>
+</svg>
diff --git a/tools/d6.svg b/tools/d6.svg
new file mode 100644
index 0000000..cc1dc9b
--- /dev/null
+++ b/tools/d6.svg
@@ -0,0 +1,19 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="72" height="12">
+<defs>
+<rect id="d6" fill="#DE5646" x="1" y="1" width="10" height="10" />
+</defs>
+<use xlink:href="#d6" x="0" y="0" />
+<use xlink:href="#d6" x="12" y="0" />
+<use xlink:href="#d6" x="24" y="0" />
+<use xlink:href="#d6" x="36" y="0" />
+<use xlink:href="#d6" x="48" y="0" />
+<use xlink:href="#d6" x="60" y="0" />
+<g font-size="7" fill="#fff" font-family="B612 Mono" font-weight="bold" text-anchor="middle">
+<text x="6" y="8.5">1</text>
+<text x="18" y="8.5">2</text>
+<text x="30" y="8.5">3</text>
+<text x="42" y="8.5">4</text>
+<text x="54" y="8.5">5</text>
+<text x="66" y="8.5">6</text>
+</g>
+</svg>
diff --git a/tools/d8.svg b/tools/d8.svg
new file mode 100644
index 0000000..2ced828
--- /dev/null
+++ b/tools/d8.svg
@@ -0,0 +1,23 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="96" height="12">
+<defs>
+<path id="d8" fill="#fff" stroke-width="0.6" stroke-linejoin="bevel" stroke="#222" d="M 6,.5 11.5,6 6,11.5 .5,6 Z" />
+</defs>
+<use xlink:href="#d8" x="0" y="0" />
+<use xlink:href="#d8" x="12" y="0" />
+<use xlink:href="#d8" x="24" y="0" />
+<use xlink:href="#d8" x="36" y="0" />
+<use xlink:href="#d8" x="48" y="0" />
+<use xlink:href="#d8" x="60" y="0" />
+<use xlink:href="#d8" x="72" y="0" />
+<use xlink:href="#d8" x="84" y="0" />
+<g font-size="7" fill="#000" font-family="B612 Mono" font-weight="bold" text-anchor="middle">
+<text x="6" y="8.5">1</text>
+<text x="18" y="8.5">2</text>
+<text x="30" y="8.5">3</text>
+<text x="42" y="8.5">4</text>
+<text x="54" y="8.5">5</text>
+<text x="66" y="8.5">6</text>
+<text x="78" y="8.5">7</text>
+<text x="90" y="8.5">8</text>
+</g>
+</svg>
diff --git a/tools/renderdice.sh b/tools/renderdice.sh
new file mode 100644
index 0000000..d2f91c4
--- /dev/null
+++ b/tools/renderdice.sh
@@ -0,0 +1,9 @@
+inkscape --export-dpi=1920 -o d4.png tools/d4.svg
+inkscape --export-dpi=1920 -o d6.png tools/d6.svg
+inkscape --export-dpi=1920 -o d8.png tools/d8.svg
+for F in d?.png
+do
+ convert -colorspace RGB -resize 6.25% -colorspace sRGB $F images/${F/.png/.1x.png}
+ convert -colorspace RGB -resize 12.5% -colorspace sRGB $F images/${F/.png/.2x.png}
+done
+rm d4.png d6.png d8.png