oneshotlm
Compare all models on this prompt →

L-system tree · qwen3-coder

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 self-contained HTML file with a procedural L-system fractal tree that branches recursively and sways gently in the wind using p5.js.

write index.html (5582 bytes)
toolResult

Successfully wrote 5582 bytes to index.html

assistant

I've created a self-contained HTML file with a procedural L-system fractal tree that branches recursively and sways gently in the wind. The implementation includes: 1. A recursive tree generation system that creates branches with varying angles and lengths 2. A wind effect that gently sways the tree based on a sine wave 3. Leaves that appear at the ends of branches 4. Visual styling with a sky background and green ground 5. Responsive design that works in any modern browser The tree is generated through recursive branching where: - Each branch has a chance to split into two new branches - Branch thickness decreases with each generation - Branch angles vary slightly for a natural appearance - Leaves appear at the ends of terminal branches The wind effect is implemented by: - Applying a rotational offset to each branch based on its generation - Using a sine wave function to create smooth oscillation - Making higher branches sway more than lower ones To view the animation, simply open the index.html file in a web browser. The tree will generate automatically and begin swaying in the wind.

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

modelqwen3-coder
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

2/5 partial

Tree renders and sways slightly with wind, but branch structure looks glitchy/disconnected and unrealistic; no reaction to any input.

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.0%
on click3.1%
on drag3.4%
on wheel3.9%
on enter + space3.9%
on arrow keys3.7%
on w/a/s/d3.6%
frame spread26.8 / 255
console errors0
js errors none

METRICS

runtime12.9s
tokens in1.1k
tokens out1.5k
cached3.6k
cost / run$0.0022