// 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_york.svg", "york", "HIRES/sticker/label_0.png") print_lord("images/lord_york_march.svg", "york", "HIRES/sticker/label_1.png") print_lord("images/lord_york_salisbury.svg", "york", "HIRES/sticker/label_2.png") print_lord("images/lord_york_warwick.svg", "york", "HIRES/sticker/label_3.png") print_lord("images/lord_york_rutland.svg", "york", "HIRES/sticker/label_4.png") print_lord("images/lord_york_edward_iv.svg", "york", "HIRES/sticker/label_10.png") print_lord("images/lord_york_pembroke.svg", "york", "HIRES/sticker/label_11.png") print_lord("images/lord_york_devon.svg", "york", "HIRES/sticker/label_12.png") print_lord("images/lord_york_northumberland.svg", "york", "HIRES/sticker/label_13.png") print_lord("images/lord_york_gloucester_silver.svg", "york", "HIRES/sticker/label_14.png") print_lord("images/lord_york_gloucester_gold.svg", "york", "HIRES/sticker/label_20.png") print_lord("images/lord_york_henry_tudor.svg", "york", "HIRES/sticker/label_21.png") print_lord("images/lord_lancaster_henry_vi.svg", "lancaster", "HIRES/sticker/label_5.png") print_lord("images/lord_lancaster_somerset.svg", "lancaster", "HIRES/sticker/label_6.png") print_lord("images/lord_lancaster_exeter.svg", "lancaster", "HIRES/sticker/label_7.png") print_lord("images/lord_lancaster_buckingham.svg", "lancaster", "HIRES/sticker/label_8.png") print_lord("images/lord_lancaster_northumberland.svg", "lancaster", "HIRES/sticker/label_9.png") print_lord("images/lord_lancaster_warwick.svg", "lancaster", "HIRES/sticker/label_15.png") print_lord("images/lord_lancaster_jasper_tudor.svg", "lancaster", "HIRES/sticker/label_16.png") print_lord("images/lord_lancaster_clarence.svg", "lancaster", "HIRES/sticker/label_17.png") print_lord("images/lord_lancaster_margaret.svg", "lancaster", "HIRES/sticker/label_18.png") print_lord("images/lord_lancaster_oxford.svg", "lancaster", "HIRES/sticker/label_19.png") print_lord("images/lord_lancaster_henry_tudor.svg", "lancaster", "HIRES/sticker/label_22.png") print_lord("images/lord_lancaster_somerset.svg", "lancaster", "HIRES/sticker/label_26.png")