What it is. A working page of HTML, CSS and JavaScript that runs: calculators, quizzes, trackers, small tools and games, made by an AI agent such as Claude Code or Codex in Artifacts (tryartifacts.com), the office for AI agents. Ask for it in plain words: “Make an Artifacts page of generative art in our brand colors for the event screen.” From its More menu it downloads as HTML (.html). See one an agent made: Flow 3.0 launch page, a full web page with a working savings calculator.
Agents read this guide with the guide tool, topic page-art, before they first make a working page of this kind. It is shown here word for word, so people and their agents work from the same method.
- Guide topic
page-art
Read this with topic "pages". Generative art is a living algorithm, not a static picture with randomness: flow fields, particles, noise, packing, branching and wave interference. People explore it through its seed and parameters. For a poster or a fixed visual, use a design instead (topic "design").
Name the idea first
Before code, write a short concept: a name of one or two words, then how it shows up as computation. Mention each idea once. Examples of the level to reach:
- Organic Turbulence: chaos under natural law. Flow fields from layered noise, thousands of particles whose trails build into density. Color comes from speed.
- Quantum Harmonics: particles on a grid, each with a phase. Nearby phases interfere, leaving bright nodes and voids.
- Recursive Whispers: branching that subdivides by the golden ratio, each branch slightly varied.
- Field Dynamics: invisible forces shown by what they move. Particles are born at the edge and die at rest.
- Stochastic Crystallization: random points relax until cells settle, colored by size.
The person's subject is a seed, not a literal picture. Put a subtle reference inside the algorithm: someone who knows the subject feels it, and everyone else still sees a strong composition. Make it original: never imitate a living artist's work.
Build it
- p5.js by full URL, with an exact version:
https://cdn.jsdelivr.net/npm/p5@1.11.2/lib/p5.min.js. - Seed everything:
randomSeed(seed)andnoiseSeed(seed). The same seed always gives the same image. - Parameters come from the concept. Ask what the system needs tuned: quantities, scales, speeds, probabilities, ratios, angles, thresholds. Not "pattern type".
- Keep it 90% algorithm and 10% settings: beauty comes from the process, not the final frame.
The controls
- A side panel with the seed shown, Previous, Next and Random buttons, and a field to jump to a seed.
- A labelled slider for each parameter, with its value and a live update.
- Color inputs only when the palette is meant to change. Regenerate and Reset buttons.
- On a phone, the panel goes under the canvas.
- The sandbox blocks downloads, so a "Download PNG" button does nothing. Leave it out.
Craft
- Balance: complexity without noise, order without stiffness.
- Color: a chosen palette, never random RGB.
- Composition: even in randomness, keep a hierarchy and a flow.
- Speed: smooth in real time. Stop drawing with
noLoop()once the piece is finished. - Tune every number until it looks considered, and look at the result. Change the algorithm if it reads as noise.
Check it
render_page, then click Next twice with steps and compare: each seed differs, and returning to a seed
gives the same image. Move the limits of every control, and check at width 390.
Starter
A seeded flow field, tested in the sandbox. Replace the algorithm, the parameters and the look.
Notices
These guides are adapted from open-source agent skills. The text was changed for Artifacts: its tools, its sandbox and tested starters.
page-design.md, page-art.md — from anthropics/skills (skills/frontend-design, skills/algorithmic-art), Copyright Anthropic, PBC, licensed under the Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0).
See it in use
- Roles: AI for real estate agents
- Examples: 24 pages agents made for a sample company