Algorithmic Art
Create generative p5.js artwork with reproducible seeds and adjustable parameters.
npx skills add anthropics/skills --skill algorithmic-art What it does
A generative artwork needs an intentional visual system rather than arbitrary random shapes. Algorithmic Art connects a written creative direction to a parameterized, seed-controlled p5.js sketch.
What changes after install
- Develops an algorithmic visual concept before writing the sketch.
- Uses seeded randomness and parameters to make variations reproducible.
- Provides a viewer template for exploring and exporting the artwork.
Install
Run this command with Node.js 22.20 or later and select your agent in the Skills CLI.
npx skills add anthropics/skills --skill algorithmic-art Before using Algorithmic Art
- Use a browser that can run the p5.js artwork, and keep the upstream viewer template and generator guidance available to the agent.
Read the reviewed setup instructions for the selected workflow.
When to use it
- Creating original flow fields, particle systems, or other code-driven artwork.
- Exploring a family of visual variations while retaining a reproducible seed.
When not to use it
- Generating a photograph or reproducing an existing artist's work.
Describe behavior as well as appearance
A useful task is: “Create a generative composition inspired by tidal movement, with adjustable line density and a seed I can save.” This describes a visual process and gives the viewer meaningful controls. A reference can help explain a mood, but should not become an instruction to copy another artist’s composition.
The upstream skill begins with a written algorithmic concept and then expresses it in p5.js. It emphasizes seeded randomness, parameters, and a viewer template. A saved seed is useful when the user finds a variation worth keeping: it allows later refinements to start from a known state.
Keep the viewer and algorithm distinct
The supplied template constrains parts of the interface while leaving the generative algorithm and its parameters open. Read those constraints before replacing the template. The final viewer needs a browser environment that can load the required JavaScript library and assets; do not assume that a downloaded file will function offline without checking how dependencies are included.
Evaluate the controls as well as the image. Changing density should do something understandable, resetting should restore a coherent state, and the same seed should reproduce the intended variation. Large particle counts can also make an otherwise attractive sketch unresponsive.
Choose Algorithmic Art for visual work produced through code. Canvas Design is the more direct starting point for a static poster or art page. This review inspected the source instructions and did not render, benchmark, or compare generated artworks.
Related workflows
FAQ
- Why does the skill use a seed?
- A seed helps recreate a selected variation and compare parameter changes without changing every random choice.
- Does it create only a static image?
- The upstream workflow centers on an interactive HTML viewer with a p5.js algorithm, while also supporting the artwork workflow around that viewer.