Generates a tree with branches and leaves influenced by a custom bending function.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Initializes a new instance of the Tree03 class.

    Parameters

    • xOffset: number

      The x-coordinate offset of the tree.

    • yOffset: number

      The y-coordinate offset of the tree.

    • Optional height: number = 16

      The height of the tree.

    • Optional color: string = "rgba(100,100,100,0.5)"

      The color of the tree.

    • bendingAngle: ((x) => number)

      The bending angle function.

        • (x): number
        • Parameters

          • x: number

          Returns number

    Returns Tree03

Properties

elements: Element[] = []

An array of Elements.

range: Range = ...

Methods