Skip to main content
100%

fractal tree

✓ Published1🌍 Public
NNeeraj Kumar
Last edited Jan 11, 2024
Created on Jan 10, 2024
Forked from Tree Fractal

An interactive fractal tree responds to mouse movement, with branching angle and length ratio changing based on cursor position. The visualization renders a recursive binary tree structure using the Canvas 2D API, drawing line segments for 13 levels of branching. It accommodates high pixel density displays by scaling the canvas using the device pixel ratio. Mouse events trigger redraws that update branch thickness and divergence angles, creating a dynamic, explorable organic form without any external data source.

AI-generated description

Interactive tree fractal with Canvas.

Move the mouse to change the branching!

Draws from HTML5 Examples.

Extended to use high resolution Canvas for high pixel density displays.

MIT Licensed

Similar vizzes