oneshotlm
Compare all models on this prompt →

L-system tree · ling-2.6-1t

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

I'll create a single-page web app with a procedural L-system fractal tree that branches recursively and sways gently in the wind, using the pre-provided p5.min.js.

write /tmp/ws/index.html (7231 bytes)
toolResult

Successfully wrote 7231 bytes to /tmp/ws/index.html

assistant

I've created a complete single-page web app featuring a procedural L-system fractal tree with gentle wind sway. Here's what it includes: **L-System Core:** - Axiom: `F` - Rule: `F → FF+[+F-F-F]-[-F+F+F]` - 5 generations of recursive expansion - Classic bracket-based turtle graphics (`[` push state, `]` pop state) **Visual Features:** - **Recursive branching** with decreasing branch length (55% per generation) and thickness - **Generation-based coloring** — trunk starts warm brown, branches shift through reddish-amber tones toward the tips - **Gentle wind sway** — smooth multi-frequency oscillation affects branch angles, creating natural-looking movement - **Dynamic thickness variation** — branches subtly pulse as they sway - **Soft glow effect** on thicker branches for depth **Atmosphere:** - Deep gradient night background - Floating leaves that drift with the wind - Snowflakes that fall and sway - Subtle ground glow at the base - Smooth performance with requestAnimationFrame The tree is drawn using p5's canvas API with the pre-provided `p5.min.js`, and all code is contained in a single `index.html` file with inline CSS and JavaScript.

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

modelling-2.6-1t
vendorinclusionai
harnesspi-agent
generated2026-08-01

EVALUATION

2/5 working

Small procedural tree with gentle sway visible, but looks blobby/malformed rather than crisp fractal branches; no input effects.

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 motion1.1%
on click1.1%
on drag2.3%
on wheel1.3%
on enter + space1.4%
on arrow keys0.9%
on w/a/s/d1.7%
frame spread13.3 / 255
console errors0
js errors none

METRICS

runtime24.2s
tokens in6.1k
tokens out3.2k
cached1.6k
cost / run$0.0024