| name | generative-art |
| description | Create algorithmic generative art using p5.js with seeded randomness, and static visual art using canvas design philosophy. Use when users request generative art, algorithmic art, flow fields, particle systems, posters, visual designs, or any code-driven creative visual output. |
Generative Art
Core Principle
Beauty lives in the process, not the final frame. Generative art is about creating algorithms that produce visual output โ each seed reveals a different facet of the same system. The goal is controlled chaos, not random noise.
Two Modes
| Mode | Output | When to Use |
|---|
| Algorithmic Art | Interactive HTML with p5.js | Animated or parameter-driven generative pieces |
| Canvas Design | Static PDF or PNG | Posters, visual designs, print-ready art |
Algorithmic Art (p5.js)
The Creative Process
1. PHILOSOPHY: Create an algorithmic philosophy (4-6 paragraphs)
โ Name the movement: "Organic Turbulence", "Quantum Harmonics"
โ Describe how it manifests through computation
โ Emphasize: process over product, parametric expression
2. IMPLEMENTATION: Express the philosophy in code
โ p5.js generative art with seeded randomness
โ Interactive parameters for exploration
โ Self-contained HTML artifact
3. REFINEMENT: Tune every parameter with care
โ Balance complexity without visual noise
โ Thoughtful color palettes, not random RGB
โ Same seed ALWAYS produces identical output
Technical Requirements
Seeded randomness (Art Blocks pattern):
let seed = 12345;
randomSeed(seed);
noiseSeed(seed);
Parameter structure โ driven by the philosophy:
let params = {
seed: 12345,
};
Canvas setup:
function setup() {
createCanvas(1200, 1200);
}
function draw() {
}
Algorithmic Approaches
Let the philosophy dictate the approach. Don't pick from a menu โ ask "how does this philosophy manifest through code?"
ORGANIC EMERGENCE:
โ Elements that accumulate or grow over time
โ Random processes constrained by natural rules
โ Feedback loops and interactions
โ Flow fields, particle systems, density maps
MATHEMATICAL BEAUTY:
โ Geometric relationships and ratios
โ Trigonometric functions and harmonics
โ Precise calculations creating unexpected patterns
โ Interference, resonance, golden ratios
CONTROLLED CHAOS:
โ Random variation within strict boundaries
โ Bifurcation and phase transitions
โ Order emerging from disorder
โ Noise fields, stochastic crystallization
Craftsmanship Requirements
- BALANCE: Complexity without visual noise, order without rigidity
- COLOR HARMONY: Thoughtful palettes, not random RGB values
- COMPOSITION: Even in randomness, maintain visual hierarchy
- PERFORMANCE: Smooth execution, optimized for real-time if animated
- REPRODUCIBILITY: Same seed ALWAYS produces identical output
Output Format
Single self-contained HTML file with:
- p5.js loaded from CDN
- All algorithm code inline
- Sidebar with seed navigation (prev/next/random/jump)
- Parameter sliders for tuning
- Regenerate, reset, and download buttons
Canvas Design (Static Art)
Design Philosophy Creation
1. NAME the movement (1-2 words)
2. ARTICULATE the philosophy (4-6 paragraphs):
โ Space and form
โ Color and material
โ Scale and rhythm
โ Composition and balance
โ Visual hierarchy
3. EMPHASIZE craftsmanship โ the final work must look
meticulously crafted, labored over with care
Visual Principles
TEXT AS VISUAL ELEMENT:
โ Minimal, design-forward, never lengthy
โ Information lives in design, not paragraphs
โ Vary font sizes dramatically for hierarchy
โ Use different fonts for different roles
COMPOSITION:
โ Repeating patterns and perfect shapes
โ Dense accumulation of marks that reward sustained viewing
โ Sparse clinical typography as systematic reference markers
โ Limited color palette that feels intentional
CRAFT:
โ Nothing overlaps accidentally
โ Nothing falls off the page
โ Every element has breathing room
โ Formatting is flawless โ every detail perfect
Output Format
Single PDF or PNG file alongside the design philosophy as a .md file.
Anti-Patterns
| Anti-Pattern | Why It Hurts | Do This Instead |
|---|
| Random RGB colors | Garish, incoherent palette | Curated palettes with intentional harmony |
| Copying existing generative artists | Copyright risk, no originality | Create original algorithmic philosophies |
| Static images with sprinkled randomness | Not generative art โ just noisy decoration | Algorithms where beauty emerges from the process |
| No seeded randomness | Can't reproduce or share specific outputs | Always seed randomSeed() and noiseSeed() |
| Generic AI aesthetics (purple gradients, Inter font) | Looks like every other AI output | Bold, distinctive choices that feel human-crafted |
| Over-decorating instead of refining | Busy and unfocused | Refine what exists, don't add more elements |
Power Move
"Create a generative art piece inspired by [concept/theme]. Write the algorithmic philosophy first, then implement it as an interactive p5.js artifact with seeded randomness. Include parameter controls so I can explore variations. Make it gallery-quality โ something that looks like it took a master craftsman countless hours to develop."
The agent becomes your creative partner โ translating concepts into living algorithms that produce art through computation.