---
name: algorithmic-art
description: 用 p5.js 创建可复现的交互式生成艺术；seeded randomness, flow fields, particles, and parameter exploration. Not for static posters or ordinary UI.
license: Complete terms in LICENSE.txt
metadata:
  exposure: discoverable
---

# Algorithmic art

1. Turn the brief into a visual idea and an algorithm (for example, a particle system driven by a noise field). Explain the concept briefly in the result; write a separate rationale only when requested.
2. Start from [viewer.html](templates/viewer.html) for an interactive HTML artifact. Use [generator_template.js](templates/generator_template.js) when a separate sketch or generator reference helps. Keep the seed, regeneration, and adjustment controls; adapt the layout and branding to the brief.
3. Implement an original sketch. Seed both randomness and noise before generation, reset mutable state when the seed or settings change, and bound the work for each frame. Choose defaults and controls that visibly affect the composition without producing invalid ranges.
4. Verify that the same seed and settings reproduce the same result, different seeds vary the composition, controls update the canvas, and the artifact opens at the intended size. If p5.js loads from a CDN, disclose the network dependency or bundle it when offline use is required. Deliver the runnable artifact and explain how to reproduce the selected seed.
