Class representing a stylized stroke using Perlin noise.

Hierarchy (view full)

Constructors

Properties

Constructors

  • Constructs a Stroke instance.

    Parameters

    • pointArray: Point[]

      List of points defining the stroke.

    • Optional fillColor: string = DEFAULT_FILL_COLOR

      Fill color for the stroke.

    • Optional color: string = DEFAULT_STROKE_COLOR

      Stroke color.

    • Optional width: number = DEFAULT_WIDTH

      Width of the stroke.

    • Optional noise: number = DEFAULT_NOISE

      Amount of noise applied to the stroke.

    • Optional strokeWidth: number = DEFAULT_STROKE_WIDTH

      Outer width of the stroke.

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

      Function to modulate stroke width.

        • (x): number
        • Parameters

          • x: number

          Returns number

    Returns Stroke

Properties

range: Range = ...

Keeping the range of the element so it could be hidden is not within working area

stringify: string = ""

String representation of the polyline.