Generates a tree with undulating branches and leaves.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Constructor for the Tree01 class.

    Parameters

    • xOffset: number

      X-coordinate offset of the tree base.

    • yOffset: number

      Y-coordinate offset of the tree base.

    • height: number = 50

      Height of the tree. Default is 50.

    • strokeWidth: number = 3

      Width of the tree branches. Default is 3.

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

      Color of the tree. Default is "rgba(100,100,100,0.5)".

    Returns Tree01

Properties

elements: Element[] = []

An array of Elements.

range: Range = ...

Methods