From 3b3fece21f8ab0e934f198f1f57a06a21600338c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 2 Dec 2023 16:03:32 +0100 Subject: Dice images. --- tools/d4.svg | 16 ++++++++++++++++ tools/d6.svg | 19 +++++++++++++++++++ tools/d8.svg | 23 +++++++++++++++++++++++ tools/renderdice.sh | 9 +++++++++ 4 files changed, 67 insertions(+) create mode 100644 tools/d4.svg create mode 100644 tools/d6.svg create mode 100644 tools/d8.svg create mode 100644 tools/renderdice.sh (limited to 'tools') 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 @@ + + + + + + + + + + +1 +2 +3 +4 + + 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 @@ + + + + + + + + + + + +1 +2 +3 +4 +5 +6 + + 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 @@ + + + + + + + + + + + + + +1 +2 +3 +4 +5 +6 +7 +8 + + 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 -- cgit v1.2.3