oneshotlm
Compare all models on this prompt →

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.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

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.

assistant
thinking
Build an index.html with p5, L-system tree, animated sway.
write /workspace/index.html (2991 bytes)
toolResult

Successfully wrote 2991 bytes to /workspace/index.html

assistant

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

modelkimi-k3
vendorMoonshot · Kimi
harnesspi-agent
generated2026-07-28

EVALUATION

4/5 working

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.

idle motion0.7%
on click7.4%
on drag0.9%
on wheel0.9%
on enter + space2.4%
on arrow keys0.9%
on w/a/s/d0.7%
frame spread32.8 / 255
console errors0
js errors none

METRICS

runtime34.9s
tokens in2.0k
tokens out1.3k
cached2.0k
cost / run$0.0060