oneshotlm
Compare all models on this prompt →

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.

⛨ sandboxed Open in new tab ↗

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

modelglm-5.3
vendorZ.ai · GLM
harnesspi-agent
generated2026-08-27

METRICS

runtime14.3s
tokens in3.9k
tokens out985
cached2.2k
cost / run$0.0073
Transcript · 4 messages
user

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.

assistant
→ write index.html (2802 bytes)
toolResult

Successfully wrote 2802 bytes to index.html

assistant

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