L-system tree · kimi-k3
Using the pre-provided p5.min.js (global p5), grow a procedural L-system fractal tree that branches recursively and sways gently in the wind.
transcript · 4 messages
Using the pre-provided p5.min.js (global p5), grow a procedural L-system fractal tree that branches recursively and sways gently in the wind.
thinking
Build an index.html with p5, L-system tree, animated sway.
/workspace/index.html (2991 bytes)Successfully wrote 2991 bytes to /workspace/index.html
Created `/workspace/index.html` — a self-contained p5.js fractal tree app: - **L-system**: axiom `X`, rules `X → F[+X][-X]FX`, `F → FF`, iterated 5× with stochastic extra branches; click to regrow a new random tree (seeded `randomSeed`). - **Wind sway**: sinusoidal rotation per branch angle, amplitude increasing toward the tips; adjust with `W`/`S`. - **Rendering**: depth-mapped stroke weight/color (thick brown trunk → thin green tips), sky gradient, ground strip, and occasional pink blossoms. Open `index.html` in a browser to watch it grow and sway.
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
EVALUATION
L-system tree grows and sways gently in wind; click triggers full regrowth into a denser tree, keys have little effect.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.