Represents a rock with varying heights and textures.

Hierarchy (view full)

Constructors

  • Parameters

    • xOffset: number

      The x-axis offset.

    • yOffset: number

      The y-axis offset.

    • Optional seed: number = 0

      The seed for the noise function. Default is 0.

    • Optional height: number = 80

      The overall height of the rock. Default is 80.

    • Optional shadow: number = 10

      The shape parameter affecting texture. Default is 10.

    • Optional strokeWidth: number = 100

      The width of the rock. Default is 100.

    Returns Rock

Properties

elements: Element[] = []

An array of Elements.

height: number = 80

The overall height of the rock. Default is 80.

range: Range = ...
seed: number = 0

The seed for the noise function. Default is 0.

shadow: number = 10

The shape parameter affecting texture. Default is 10.

strokeWidth: number = 100

The width of the rock. Default is 100.

xOffset: number

The x-axis offset.

yOffset: number

The y-axis offset.

Methods