Tree fractal

See Wikipedia for the Canopy Fractal. Extract below

In geometry, a fractal canopy, a type of fractal tree, is one of the easiest-to-create types of fractals. Each canopy is created by splitting a line segment into two smaller segments at the end (symmetric binary tree), and then splitting the two smaller segments as well, and so on, infinitely.Canopies are distinguished by the angle between concurrent adjacent segments and ratio between lengths of successive segments. A fractal canopy must have the following three properties:

  1. The angle between any two neighboring line segments is the same throughout the fractal.
  2. The ratio of lengths of any two consecutive line segments is constant.
  3. Points all the way at the end of the smallest line segments are interconnected, which is to say the entire figure is a connected graph.

The pulmonary system used by humans to breathe resembles a fractal canopy, as do trees, blood vessels, viscous fingering, electrical breakdown, and crystals with appropriately adjusted growth velocity from seed.

Play around with the parameters of the drawing with the controls below. Please be aware that the browser may freeze or crash when large amounts of line segments are requested (typically more than 2 16 = 65.536 segments )

line segments

(The angle in relation to the base line)

1 xxx (Higher values generate smaller lines in iterations)