From 3d8086e53dab2780360bd27040b872c359cefc0c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 26 May 2023 22:16:58 +0200 Subject: Cylinders. Red color may need adjusting. --- images/lord_lancaster_1.svg | 11 ++++++++ images/lord_lancaster_10.svg | 11 ++++++++ images/lord_lancaster_11.svg | 11 ++++++++ images/lord_lancaster_12.svg | 11 ++++++++ images/lord_lancaster_2.svg | 11 ++++++++ images/lord_lancaster_3.svg | 11 ++++++++ images/lord_lancaster_4.svg | 11 ++++++++ images/lord_lancaster_5.svg | 11 ++++++++ images/lord_lancaster_6.svg | 11 ++++++++ images/lord_lancaster_7.svg | 11 ++++++++ images/lord_lancaster_8.svg | 11 ++++++++ images/lord_lancaster_9.svg | 11 ++++++++ images/lord_york_1.svg | 11 ++++++++ images/lord_york_10.svg | 11 ++++++++ images/lord_york_11.svg | 11 ++++++++ images/lord_york_12.svg | 11 ++++++++ images/lord_york_2.svg | 11 ++++++++ images/lord_york_3.svg | 11 ++++++++ images/lord_york_4.svg | 11 ++++++++ images/lord_york_5.svg | 11 ++++++++ images/lord_york_6.svg | 11 ++++++++ images/lord_york_7.svg | 11 ++++++++ images/lord_york_8.svg | 11 ++++++++ images/lord_york_9.svg | 11 ++++++++ tools/gencyl.js | 62 ++++++++++++++++++++++++++++++++++++++++++++ tools/markers2.sh | 12 +++++---- 26 files changed, 333 insertions(+), 5 deletions(-) create mode 100644 images/lord_lancaster_1.svg create mode 100644 images/lord_lancaster_10.svg create mode 100644 images/lord_lancaster_11.svg create mode 100644 images/lord_lancaster_12.svg create mode 100644 images/lord_lancaster_2.svg create mode 100644 images/lord_lancaster_3.svg create mode 100644 images/lord_lancaster_4.svg create mode 100644 images/lord_lancaster_5.svg create mode 100644 images/lord_lancaster_6.svg create mode 100644 images/lord_lancaster_7.svg create mode 100644 images/lord_lancaster_8.svg create mode 100644 images/lord_lancaster_9.svg create mode 100644 images/lord_york_1.svg create mode 100644 images/lord_york_10.svg create mode 100644 images/lord_york_11.svg create mode 100644 images/lord_york_12.svg create mode 100644 images/lord_york_2.svg create mode 100644 images/lord_york_3.svg create mode 100644 images/lord_york_4.svg create mode 100644 images/lord_york_5.svg create mode 100644 images/lord_york_6.svg create mode 100644 images/lord_york_7.svg create mode 100644 images/lord_york_8.svg create mode 100644 images/lord_york_9.svg create mode 100644 tools/gencyl.js diff --git a/images/lord_lancaster_1.svg b/images/lord_lancaster_1.svg new file mode 100644 index 0000000..cbcb76e --- /dev/null +++ b/images/lord_lancaster_1.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_10.svg b/images/lord_lancaster_10.svg new file mode 100644 index 0000000..f5f539c --- /dev/null +++ b/images/lord_lancaster_10.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_11.svg b/images/lord_lancaster_11.svg new file mode 100644 index 0000000..b28dfa4 --- /dev/null +++ b/images/lord_lancaster_11.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_12.svg b/images/lord_lancaster_12.svg new file mode 100644 index 0000000..a2ddde8 --- /dev/null +++ b/images/lord_lancaster_12.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_2.svg b/images/lord_lancaster_2.svg new file mode 100644 index 0000000..159b8bb --- /dev/null +++ b/images/lord_lancaster_2.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_3.svg b/images/lord_lancaster_3.svg new file mode 100644 index 0000000..66dbca2 --- /dev/null +++ b/images/lord_lancaster_3.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_4.svg b/images/lord_lancaster_4.svg new file mode 100644 index 0000000..81b7102 --- /dev/null +++ b/images/lord_lancaster_4.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_5.svg b/images/lord_lancaster_5.svg new file mode 100644 index 0000000..94671e3 --- /dev/null +++ b/images/lord_lancaster_5.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_6.svg b/images/lord_lancaster_6.svg new file mode 100644 index 0000000..38b471e --- /dev/null +++ b/images/lord_lancaster_6.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_7.svg b/images/lord_lancaster_7.svg new file mode 100644 index 0000000..817444f --- /dev/null +++ b/images/lord_lancaster_7.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_8.svg b/images/lord_lancaster_8.svg new file mode 100644 index 0000000..6996f3a --- /dev/null +++ b/images/lord_lancaster_8.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_lancaster_9.svg b/images/lord_lancaster_9.svg new file mode 100644 index 0000000..5e16b15 --- /dev/null +++ b/images/lord_lancaster_9.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_1.svg b/images/lord_york_1.svg new file mode 100644 index 0000000..09514b0 --- /dev/null +++ b/images/lord_york_1.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_10.svg b/images/lord_york_10.svg new file mode 100644 index 0000000..e0d7b2a --- /dev/null +++ b/images/lord_york_10.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_11.svg b/images/lord_york_11.svg new file mode 100644 index 0000000..25cc479 --- /dev/null +++ b/images/lord_york_11.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_12.svg b/images/lord_york_12.svg new file mode 100644 index 0000000..1057c17 --- /dev/null +++ b/images/lord_york_12.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_2.svg b/images/lord_york_2.svg new file mode 100644 index 0000000..cbb6857 --- /dev/null +++ b/images/lord_york_2.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_3.svg b/images/lord_york_3.svg new file mode 100644 index 0000000..0c82297 --- /dev/null +++ b/images/lord_york_3.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_4.svg b/images/lord_york_4.svg new file mode 100644 index 0000000..09b0986 --- /dev/null +++ b/images/lord_york_4.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_5.svg b/images/lord_york_5.svg new file mode 100644 index 0000000..14b9b3b --- /dev/null +++ b/images/lord_york_5.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_6.svg b/images/lord_york_6.svg new file mode 100644 index 0000000..1d2dcd1 --- /dev/null +++ b/images/lord_york_6.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_7.svg b/images/lord_york_7.svg new file mode 100644 index 0000000..2a534dc --- /dev/null +++ b/images/lord_york_7.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_8.svg b/images/lord_york_8.svg new file mode 100644 index 0000000..48f8f08 --- /dev/null +++ b/images/lord_york_8.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/lord_york_9.svg b/images/lord_york_9.svg new file mode 100644 index 0000000..7b34ca1 --- /dev/null +++ b/images/lord_york_9.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tools/gencyl.js b/tools/gencyl.js new file mode 100644 index 0000000..31c0c2e --- /dev/null +++ b/tools/gencyl.js @@ -0,0 +1,62 @@ +// physical cylinders are diameter 15mm x 10mm +// at 75dpi => 44px x 29px +// stickers: 42x28 +// image: 44x? - outline at 1 to 2 - start at 1.5 + +const fs = require('fs') + +function print_lord(output, side, label) { + let image = fs.readFileSync(label).toString('base64') + let svg = [] + let bd = '#222' + let f = 'url(#g)' + svg.push('') + svg.push('') + + svg.push('') + if (side === 'york') { + svg.push('') + svg.push('') + svg.push('') + bd = '#555' + } else { + svg.push('') + svg.push('') + svg.push('') + bd = '#533' + } + svg.push('') + + svg.push(``) + svg.push(``) + svg.push(``) + + svg.push('') + fs.writeFileSync(output, svg.join("\n") + "\n") +} + +print_lord("images/lord_york_1.svg", "york", "HIRES/sticker/label_0.png") +print_lord("images/lord_york_2.svg", "york", "HIRES/sticker/label_1.png") +print_lord("images/lord_york_3.svg", "york", "HIRES/sticker/label_2.png") +print_lord("images/lord_york_4.svg", "york", "HIRES/sticker/label_3.png") +print_lord("images/lord_york_5.svg", "york", "HIRES/sticker/label_4.png") +print_lord("images/lord_york_6.svg", "york", "HIRES/sticker/label_10.png") +print_lord("images/lord_york_7.svg", "york", "HIRES/sticker/label_11.png") +print_lord("images/lord_york_8.svg", "york", "HIRES/sticker/label_12.png") +print_lord("images/lord_york_9.svg", "york", "HIRES/sticker/label_13.png") +print_lord("images/lord_york_10.svg", "york", "HIRES/sticker/label_14.png") +print_lord("images/lord_york_11.svg", "york", "HIRES/sticker/label_20.png") +print_lord("images/lord_york_12.svg", "york", "HIRES/sticker/label_21.png") + +print_lord("images/lord_lancaster_1.svg", "lancaster", "HIRES/sticker/label_5.png") +print_lord("images/lord_lancaster_2.svg", "lancaster", "HIRES/sticker/label_6.png") +print_lord("images/lord_lancaster_3.svg", "lancaster", "HIRES/sticker/label_7.png") +print_lord("images/lord_lancaster_4.svg", "lancaster", "HIRES/sticker/label_8.png") +print_lord("images/lord_lancaster_5.svg", "lancaster", "HIRES/sticker/label_9.png") +print_lord("images/lord_lancaster_6.svg", "lancaster", "HIRES/sticker/label_15.png") +print_lord("images/lord_lancaster_7.svg", "lancaster", "HIRES/sticker/label_16.png") +print_lord("images/lord_lancaster_8.svg", "lancaster", "HIRES/sticker/label_17.png") +print_lord("images/lord_lancaster_9.svg", "lancaster", "HIRES/sticker/label_18.png") +print_lord("images/lord_lancaster_10.svg", "lancaster", "HIRES/sticker/label_19.png") +print_lord("images/lord_lancaster_11.svg", "lancaster", "HIRES/sticker/label_22.png") +print_lord("images/lord_lancaster_12.svg", "lancaster", "HIRES/sticker/label_26.png") diff --git a/tools/markers2.sh b/tools/markers2.sh index 32196c5..0a6470d 100644 --- a/tools/markers2.sh +++ b/tools/markers2.sh @@ -1,21 +1,23 @@ # lancaster is red # york is white -mkdir -p HIRES/output +mkdir -p HIRES/output HIRES/sticker function trim { echo trimming $3 - bash tools/trim_border.sh $1 $2 HIRES/render/$3.ppm HIRES/output/$4.png + bash tools/trim_border.sh $1 $2 HIRES/render/$3.png HIRES/output/$4.png } function small { # large square 35x35 => 280 - convert -gravity Center -crop 280x280+0+0 HIRES/render/$1.ppm HIRES/output/$2.png + convert -gravity Center -crop 280x280+0+0 HIRES/render/$1.png HIRES/output/$2.png } function sticker { - # round sticker labels 40x40 => 320x320 - trim 320 320 $1 $1 + # round sticker labels 42x42 => 336x336 => isometric 42x28 + echo trimming $1 + bash tools/trim_border.sh 336 336 HIRES/render/$1.png /tmp/sticker.png + convert /tmp/sticker.png -colorspace RGB -resize 84x56! -colorspace sRGB HIRES/sticker/$1.png } function round { -- cgit v1.2.3