export-art

Installation
SKILL.md

Export generative art

Display resolution ≠ export resolution. Render large only when exporting, keep sizes relative so scaling doesn't break the composition, and always preserve the seed so the output is reproducible.

High-res still (p5.js)

Render to an offscreen graphics buffer at a higher scale, then save:

function exportHiRes(scale = 4) {
  const g = createGraphics(width * scale, height * scale)
  g.pixelDensity(1)
  randomSeed(params.seed); noiseSeed(params.seed)   // reproduce the exact piece
  drawInto(g, scale)                                 // your draw, parameterized by target + scale
  save(g, `art_${params.seed}.png`)
  g.remove()
}
  • Make stroke weights / radii proportional to canvas size (e.g. width * 0.002) so they scale cleanly.
  • Print sizing: pixels = inches × 300. A3 (11.7×16.5in) @300dpi ≈ 3508×4961px. Compute the scale to hit that.
  • SVG for vector pieces (packing, tiling, line work) → use p5.svg (createCanvas(w, h, SVG)) for infinite-resolution print.
Installs
2
GitHub Stars
2
First Seen
Oct 12, 2026