oneshotlm
Compare all models on this prompt →

L-system tree · qwen3.5-122b-a10b

Output generated Cost / run $0.0058 Runtime 16.8s

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

modelqwen3.5-122b-a10b
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime16.8s
tokens in8.2k
tokens out1.8k
cached0
cost / run$0.0058
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:
1. Uses p5.js (already available as p5.min.js in the current directory)
2. Has recursive branching
3. Sways gently in the wind

I need to write everything into one self-contained index.html file with inline CSS and JS.

Let me create this file with:
- A p5.js sketch that draws an L-system fractal tree
- Recursive branching logic
- Wind animation using sine waves for gentle swaying
→ write index.html (3936 bytes)
toolResult

Successfully wrote 3936 bytes to index.html

assistant
thinking
The file has been created successfully. Let me verify it exists and check its contents briefly.
→ bash {"command":"ls -la index.html"}
toolResult

-rw-r--r--. 1 node node 3936 Aug 1 20:14 index.html

assistant
thinking
The file was created successfully. Let me provide a summary of what the L-system fractal tree includes.

Done! Created `index.html` with a procedural L-system fractal tree featuring: - **Recursive branching**: 7 levels of recursion with left/right branches (and optional middle branches for density) - **Wind animation**: Branches sway using sine waves that vary by depth level - higher branches sway more - **Gradient coloring**: HSL colors transition from dark green at the trunk to lighter green at the tips - **Glowing leaves**: Random leaf clusters appear at branch tips - **Floating particles**: Ambient glowing orbs drift around the tree - **Animated gradient background**: Dark blue tones create atmosphere - **Responsive**: Canvas resizes with the window Open `index.html` in a browser to see the tree grow and sway in the wind.