Tools

Home
Password GeneratorLorem IpsumCoin FlipperRandom StringToken GeneratorRandom Color

Draw Canopy Fractal Online

Generate beautiful binary tree (canopy) fractals with custom depth, angle, ratio, and colors

Your files never leave your browser
Ready·Canvas API

Draw binary tree fractals by setting depth, branch angle, ratio, and colors — then export the result as a PNG. The generator renders up to 32,000+ branches in under a second, so you can experiment with settings without waiting around. And everything runs in your browser. Nothing gets uploaded.

How It Works

Set Parameters
→
Recursive Branching
→
PNG Download

The generator starts with a single trunk line at the bottom of the canvas. At each depth level, it splits every branch into two child branches — one angled left, one right — each shortened by your branch ratio. Colors blend from trunk to leaf as branches get smaller. The whole thing draws on a Canvas element, so exporting to PNG is one click.

Examples

Classic Binary Tree for a Math Poster

A teacher needs a clean fractal diagram showing self-similarity for a classroom wall poster.

INPUT
Depth: 10 Angle: 45° Ratio: 0.7 Background: #ffffff Trunk: #333333 Leaf: #333333
OUTPUT
Monochrome symmetric tree 1,023 branches Clean enough for print at 800×700px

Colorful Generative Art Piece

An artist wants an organic-looking tree with vivid color gradients to use as album artwork.

INPUT
Depth: 13 Angle: 30° Ratio: 0.75 Background: #0a0a1a Trunk: #8b6914 Leaf: #22c55e
OUTPUT
Golden-to-green gradient tree 8,191 branches on dark background Narrow spread, dense canopy feel

Wide-Angle Sparse Fractal for a Presentation Slide

A developer building a talk on recursion needs a simple, readable visual that won’t overwhelm the slide.

INPUT
Depth: 6 Angle: 60° Ratio: 0.6 Background: #f0f2f5 Trunk: #6366f1 Leaf: #a855f7
OUTPUT
Purple-toned open tree 63 branches, easy to count Great for explaining recursion visually

Who Uses This

🎨 Artists

Generate unique fractal trees for prints, album covers, and digital collages without writing code.

👩‍🏫 Teachers

Show students how recursion and self-similarity work with a visual they can tweak in real time.

👨‍💻 Developers

Grab quick fractal assets for demo apps, loading screens, or conference talk slides.

📐 Math Students

Experiment with depth, angles, and ratios to understand how small parameter changes create wildly different shapes.

Common Mistakes

Cranking depth to 15 right away

At depth 15 the tool draws 32,767 branches. On older machines, this can lag for a few seconds. Start around 8–10 to find the look you want, then bump it up for the final render.

Setting branch ratio too high (above 0.85)

Branches barely shrink, so they overlap into a messy blob. Keep the ratio between 0.5 and 0.8 for results that actually look like a tree.

Matching trunk and background colors

The trunk color blends toward the leaf color. If the trunk is too close to the background, the lower branches disappear. Pick a trunk color that contrasts with your background.

Technical Details

Frequently Asked Questions

What is a canopy fractal?

It’s a binary tree fractal — you start with one trunk, split it into two branches at a set angle, then split each of those again, and keep going. The pattern is self-similar, meaning every sub-branch looks like a smaller copy of the whole tree. The name comes from the fact that the result looks like a tree canopy viewed from the side.

How many branches does each depth level produce?

Each level doubles. Depth 5 gives 31 branches, depth 10 gives 1,023, and depth 15 tops out at 32,767. The formula is 2^n − 1, where n is the depth. You will not notice a speed difference until around depth 13 or 14 on most machines.

What branch angle looks most natural?

Angles between 20° and 40° tend to produce the most tree-like results. Real trees often branch at roughly 25–35°. Wider angles (50°+) create abstract, fan-shaped patterns — still interesting, just less organic.

Can I use the generated fractal images commercially?

Yes. The images are rendered in your own browser and belong to you. There are no watermarks, no licensing restrictions, and no attribution required. Use them for prints, merchandise, presentations — whatever you need.

Does this tool upload my data anywhere?

No. The fractal is drawn entirely on your device using the HTML5 Canvas API. Nothing is sent to a server. Your color choices, depth settings, and final image all stay local in your browser tab.

Share: