🌍 Public
Fork of Tree Fractal
This interactive tree fractal responds to mouse movement, changing its branch length ratio and angle difference as the cursor moves across the canvas. A recursive function draws the branching structure, with red circles at terminal nodes. The code uses the Canvas 2D API with high-resolution scaling via `devicePixelRatio`, clearing and redrawing the tree on each mouse move event.
AI-generated descriptionInteractive 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
Comments
Sign in to join the discussion.