oneshotlm
Compare all models on this prompt →

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

Output generated Cost / run $0.0031 Runtime 8.6s

Prompt for this run

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 ↗

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

METRICS

runtime8.6s
tokens in5.8k
tokens out1.1k
cached0
cost / run$0.0031
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.