Represents textured polylines based on a grid of points.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Parameters

    • elements: Point[][]

      2D array of points representing the grid.

    • Optional xOffset: number = 0

      X-offset for the texture.

    • Optional yOffset: number = 0

      Y-offset for the texture.

    • Optional textureCount: number = 400

      Number of textures to generate.

    • Optional shadow: number = 0

      Shade factor for additional shading.

    • Optional displacementFunction: (() => number) = ...

      Function to determine the displacement of each texture.

        • (): number
        • Returns number

    • Optional noise: ((x) => number) = ...

      Function to determine the noise of each texture.

        • (x): number
        • Parameters

          • x: number

          Returns number

    • Optional length: number = 0.2

      Length factor for the textures.

    Returns Texture

Properties

elements: Element[] = []

An array of Elements.

range: Range = ...

Methods