Flow-field particles · glm-5.3
Output generated Cost / run $0.0073 Runtime 14.3s
Prompt for this run
Using the pre-provided p5.min.js (global p5, instance or global mode), create a full-screen flow-field particle animation: thousands of particles advected by Perlin-noise vectors, leaving fading trails, with colors shifting over time.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
METRICS
Transcript · 4 messages
Using the pre-provided p5.min.js (global p5, instance or global mode), create a full-screen flow-field particle animation: thousands of particles advected by Perlin-noise vectors, leaving fading trails, with colors shifting over time.
index.html (2802 bytes)Successfully wrote 2802 bytes to index.html
Done — `index.html` is in place. It uses the local `p5.min.js` (instance mode) and renders a full-screen flow field: - **3000 particles** advected by a 3D Perlin-noise vector field (angle = layered noise), evolving over time via the z-axis - **Fading trails** via a translucent black rect each frame - **Color shifting over time**: HSB hue base drifts continuously, with per-particle and y-position hue offsets - Particles wrap at edges, respawn after a random lifetime, and resize handles window changes