oneshotlm
Compare all models on this prompt →

L-system tree · nemotron-3-ultra-550b-a55b

Output generated Cost / run $0.0037 Runtime 21.7s

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

modelnemotron-3-ultra-550b-a55b
vendorNVIDIA
harnesspi-agent
generated2026-07-22

METRICS

runtime21.7s
tokens in4.2k
tokens out745
cached128
cost / run$0.0037
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
thinking
We need to create index.html with p5.min.js loaded locally. Build a single-page app with CSS in style tag, JS in script tag. Use p5.min.js already present. Need to write code for L-system fractal tree, recursive branching, wind sway.

We'll write HTML with canvas via p5. Use p5 instance mode or global? They said global p5, so we can use p5 functions directly. In p5, we can define setup(), draw(). Use angle, length, recursion. Add wind using Perlin noise varying over time to modify angles.

Write index.html now.
→ write /workspace/index.html (1569 bytes)
toolResult

Successfully wrote 1569 bytes to /workspace/index.html

assistant
thinking
We have created index.html. Need ensure p5.min.js exists in current directory. Assume it's present. Done.

The file **index.html** has been created in the current directory. It loads the local `p5.min.js`, sets up a full‑screen canvas, and draws a recursive L‑system fractal tree whose branches sway gently using Perlin‑noise‑driven wind. Open `index.html` in a browser to see the animation.