Made with draw · 2026-11-27
Fractal Tree
A Python drawing made in the browser.
Files: main.py, fractal_tree.py, grass_sheaf.py, rect.py, forest.py
Python code
This scene is drawn from Python. Open it in the editor to change the colours, positions, and shapes.
from forest import Forest
from rect import Rect, Point
from random import randrange
from functools import cmp_to_key
forest = Forest(1800, 600, 15)
forest.draw()
Make your own version
Open the drawing in the editor, change one value, and run it again. Or start from a blank canvas with the beginner tutorial.