// Original vector sources; generate portable PNG assets with sharp.
const sharp = require(process.argv[2] || 'sharp')
const fs = require('node:fs')
const path = require('node:path')
const output = path.resolve(__dirname, '../src/assets/home')
const art = {
heart: ``,
gourd: ``,
vase: ``,
coin: ``,
fan: ``,
scroll: ``,
bamboo: ``,
horse: ``,
water: ``,
spirit: ``
}
const gradients = ``
async function main() {
fs.mkdirSync(output, { recursive: true })
for (const [name, content] of Object.entries(art)) {
const svg = ``
await sharp(Buffer.from(svg)).png().toFile(path.join(output, `${name}.png`))
}
console.log(`Rendered ${Object.keys(art).length} home icons`)
}
main().catch((error) => { console.error(error); process.exitCode = 1 })