Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fractal Tree (SVG)

Public visualization

Fractal Tree (SVG)

0 stars1🌍 Public
KKristin Baumann
Last edited Feb 21, 2025
Created on Apr 25, 2024

This visualization shows a fractal tree created through recursive branching, where each branch splits into two smaller branches at a fixed angle. Starting from the bottom center of the canvas, the tree extends upward with each iteration reducing the branch length by a factor of 0.67. The code uses the Svelte framework with SVG rendering, employing D3's `path` API to construct the complete branching structure as a single path element. The recursion continues until branch lengths fall below 2 pixels, resulting in a detailed, self-similar structure displayed with white strokes against a dark background.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed