sw = 640
sh = 480
Call pythTree
(sw
/ 2 - sw
/ 12, sh
- 30, sw
/ 2 + sw
/ 12, sh
- 30, 0)
cx = ax - ay + by
cy = ax + ay - bx
dx = bx + by - ay
dy = ax - bx + by
ex = (cx - cy + dx + dy) * 0.5
ey = (cx + cy - dx + dy) * 0.5
c = depth * 15
Call pythTree
(cx
, cy
, ex
, ey
, depth
+ 1) Call pythTree
(ex
, ey
, dx
, dy
, depth
+ 1)