Algorithmic Art¶
Purpose: Create generative art using p5.js with seeded randomness and interactive parameter exploration. Produces algorithmic philosophies, interactive HTML viewers, and JavaScript generative algorithms.
When to Use¶
| Trigger | Description |
|---|---|
| Generative Art | Creating art using code, flow fields, or particle systems |
| Algorithmic Art | Building computational aesthetic pieces with seeded randomness |
| Interactive Visuals | Producing parameterized p5.js sketches with real-time controls |
| Creative Coding | Exploring emergent behavior and mathematical beauty through code |
Process¶
Step 1: Create an Algorithmic Philosophy¶
Define a computational aesthetic movement expressed through code:
- Name the movement (1-2 words) - e.g., "Organic Turbulence", "Quantum Harmonics"
- Articulate the philosophy (4-6 paragraphs) covering:
- Computational processes and mathematical relationships
- Noise functions and randomness patterns
- Particle behaviors and field dynamics
- Temporal evolution and system states
- Parametric variation and emergent complexity
- Output the philosophy as a
.mdfile
Step 2: Deduce the Conceptual Seed¶
Identify a subtle conceptual thread from the original request — a niche reference embedded within the algorithm itself, not literal but sophisticated. The reference should enhance depth without announcing itself.
Step 3: Implement with p5.js¶
Build the generative art using the skill's HTML viewer template:
- Read
assets/viewer.htmlas the literal starting point - Keep fixed sections exactly as shown (header, sidebar, seed controls, actions)
- Replace variable sections (algorithm, parameters, UI controls)
- Use seeded randomness for reproducibility (Art Blocks pattern)
- Output a single self-contained HTML file
Step 4: Tune and Refine¶
Ensure gallery-quality output:
- Balance: Complexity without visual noise
- Color Harmony: Thoughtful palettes, not random RGB
- Composition: Visual hierarchy even in randomness
- Performance: Smooth real-time execution
- Reproducibility: Same seed always produces identical output
Key Principles¶
- Process over product — beauty emerges from the algorithm's execution
- Parametric expression — ideas communicate through mathematical relationships
- Artistic freedom — interpret the philosophy algorithmically
- Expert craftsmanship — the algorithm must feel meticulously crafted
- Original work — create original algorithmic art to avoid copyright violations
See Also¶
- CLI Reference: skill - Full command reference
- The .claude Directory - Where skills live
- Create Skill - Create your own skills