Class representing a generator for a fractal tree-like structure.

Hierarchy (view full)

Constructors

Properties

elements: Element[] = []

An array of Elements.

range: Range = ...

Methods

  • Recursive function to generate a fractal tree-like structure.

    Parameters

    • xOffset: number

      X-coordinate offset.

    • yOffset: number

      Y-coordinate offset.

    • depth: number

      Current depth of recursion.

    • angle: number = ...

      Initial angle of the tree.

    • len: number = 15

      Length of the branches.

    • bendingAngle: number = 0

      Bending angle of the tree.

    Returns void