Represents a box generated using procedural generation.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Constructs a Box object with the specified parameters.

    Parameters

    • xOffset: number

      The x-coordinate offset for the box.

    • yOffset: number

      The y-coordinate offset for the box.

    • Optional height: number = 20

      The height of the box.

    • Optional width: number = 120

      The width of the box.

    • Optional rotation: number = 0.7

      The rotation factor of the box.

    • Optional perspective: number = 4

      The perspective factor of the box.

    • Optional hasTransparency: boolean = true

      Indicates whether the box has transparency.

    • Optional hasBottom: boolean = true

      Indicates whether the box has a bottom.

    • Optional strokeWidth: number = 3

      The stroke width of the box.

    • Optional style: number = 666

      The style of the box (no style at all).

    • Optional horizontalSubPoints: number = 3

      The number of horizontal sub-points.

    • Optional verticalSubPoints: number = 2

      The number of vertical sub-points.

    Returns Box

Properties

elements: Element[] = []

An array of Elements.

range: Range = ...

Methods