Represents a blob

Hierarchy (view full)

Constructors

Properties

Constructors

  • Constructor for the Blob class.

    Parameters

    • x: number

      X-coordinate of the blob.

    • y: number

      Y-coordinate of the blob.

    • Optional angle: number = DEFAULT_ANGLE

      Angle of the blob.

    • Optional fillColor: string = DEFAULT_FILL_COLOR

      Fill fillColor of the blob.

    • Optional length: number = DEFAULT_LENGTH

      Length of the blob.

    • Optional strokeWidth: number = DEFAULT_STROKE_WIDTH

      Width of the blob's outline.

    • Optional noise: number = DEFAULT_NOISE

      Amount of noise applied to the blob's outline.

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

      Function to modulate the blob's outline width (default is sin function).

        • (x): number
        • Parameters

          • x: number

          Returns number

    • Optional returnPoints: boolean

      Whether to return the points of the blob or not. Used by Tree07 only.

    Returns Blob

Properties

points: Point[] = []
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.