{
const SVG = svg`<svg width="${w}" height="${h}"></svg>`
const rc = rough.svg(SVG)
const addToSVG = el => SVG.appendChild(el)
addToSVG(rc.rectangle(0, 0, w, h, {
fill: palette[0],
fillWeight: 4,
fillStyle: 'sunburst',
hachureAngle: randInt(720),
stroke: 'none'
}))
array(n).forEach(i => {
addToSVG(rc.path(`${polygonPath(randInt(w), randInt(h), randInt(12), randInt(50, (n-i) * 10), random(TAU))}`, {
fill: palette[randInt(1,palette.length)],
fillWeight: randInt(1, 5),
fillStyle: 'sunburst',
hachureAngle: randInt(720),
stroke: 'none'
}))
})
return SVG
}