// 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('') if (1) { svg.push('') if (side === 'russian') { svg.push('') svg.push('') svg.push('') bd = '#555' } else { svg.push('') svg.push('') svg.push('') bd = '#111' } svg.push('') } else { if (side === 'russian') { f = '#ddd' bd = '#222' } else { f = '#555' bd = '#222' } } svg.push(``) svg.push(``) svg.push(``) svg.push('') fs.writeFileSync(output, svg.join("\n") + "\n") } for (let i = 1; i <= 7; ++i) { print_lord(`images/lord_teutonic_${i}.svg`, "teutonic", `tools/output150/lord_teutonic_${i}_3d.png`) print_lord(`images/lord_russian_${i}.svg`, "russian", `tools/output150/lord_russian_${i}_3d.png`) }