oneshotlm
Compare all models on this prompt →

L-system tree · grok-4.6

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 · 6 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
The user wants me to create a single-page web app with a procedural L-system fractal tree that branches recursively and sways gently in the wind. I need to use p5.min.js from the current directory, an...

I'll check the workspace and p5, then build a self-contained L-system tree that sways in the wind.

bash {"command":"ls -la /tmp/ws"}
toolResult

total 1012 drwxr-sr-x. 2 node node 23 Aug 13 01:27 . drwxrwsrwx. 3 root node 16 Aug 13 01:27 .. -rw-r--r--. 1 node node 1034532 Aug 13 01:27 p5.min.js

assistant
thinking
I'll create a beautiful single-page L-system fractal tree with p5.js. The tree should:

Building a self-contained L-system tree with recursive branching and wind-driven sway.

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

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

assistant
thinking
The user asked me to build a single-page web app with an L-system fractal tree. I've written the index.html file. Let me verify it's present and the p5 script is referenced correctly.

`index.html` is a self-contained dusk scene: a classic L-system tree (`X → F[+X]F[-X]+X`, `F → FF`) drawn with a turtle, plus depth-weighted wind so tips move more than the trunk. - Click to reseed the plant - `↑` / `↓` change generation (1–7) - `←` / `→` change wind - Space pauses the breeze

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

modelgrok-4.6
vendorxAI · Grok
harnesspi-agent
generated2026-08-13

EVALUATION

3/5 partial

L-system tree with moon, hills, and grass renders nicely but shows minimal growth/sway and no visible reaction to inputs.

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.7%
on drag1.9%
on wheel1.8%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread19.4 / 255
console errors0
js errors none

METRICS

runtime58.0s
tokens in9.6k
tokens out4.7k
cached2.2k
cost / run$0.0440