oneshotlm
Compare all models on this prompt →

L-system tree · mistral-medium-3.1

Output generated Cost / run $0.0042 Runtime 16.1s

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

modelmistral-medium-3.1
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime16.1s
tokens in4.5k
tokens out1.7k
cached2.6k
cost / run$0.0042
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
→ write index.html (5251 bytes)
toolResult

Successfully wrote 5251 bytes to index.html

assistant

Created a self-contained `index.html` file with a procedural L-system fractal tree that: 1. **Grows recursively** using L-system rules (`F → FF+[+F-F-F]-[-F+F+F]`) 2. **Sways gently in the wind** (toggle with 'w' key) 3. **Regenerates on click** with random parameters 4. **Features**: - Golden-ratio-inspired branching angles - Dynamic branch thickness - Seasonal color gradients - Wind simulation with adjustable amplitude - No external dependencies (uses local p5.min.js) The tree is fully contained in a single HTML file with inline CSS and JavaScript. Open it in any modern browser to see the animation.