oneshotlm
Compare all models on this prompt →

L-system tree · gemini-3.1-flash-lite-preview

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
**Defining the Objective**

I'm currently focused on defining the project's core objective: crafting a single-page web app with a procedural L-system fractal tree. The `index.html` file will be self-contained and leverage `p5.min.js`. The tree needs to branch recursively and sway to simulate wind, all without external resources.


bash {"command":"ls -l p5.min.js"}
toolResult

-rw-r--r-- 1 node node 1034532 Jul 22 17:29 p5.min.js

assistant
write index.html (1846 bytes)
toolResult

Successfully wrote 1846 bytes to index.html

assistant

The single-page web app has been created in `index.html`. It uses the provided `p5.min.js` to render a procedural L-system fractal tree. The tree branches recursively based on the L-system rules and swaying motion is added by applying a sine-based offset to the rotation angle during the turtle graphic interpretation loop. You can view this file in any browser that supports a local file server.

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

modelgemini-3.1-flash-lite-preview
vendorGoogle
harnesspi-agent
generated2026-07-22

EVALUATION

2/5 working

Small procedural tree renders and subtly sways but stays tiny with no growth animation or interactivity.

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.1%
on click0.2%
on drag0.2%
on wheel0.3%
on enter + space0.3%
on arrow keys0.3%
on w/a/s/d0.2%
frame spread5.4 / 255
console errors0
js errors none

METRICS

runtime8.6s
tokens in5.8k
tokens out1.1k
cached0
cost / run$0.0031