• Parses value into a Color instance. When another color instance is provided, it is cloned.

    Parameters

    Returns Color

    The parsed color, or black color if value is invalid.

Properties

Properties

gradient: ((colors?: readonly ColorLike[], minValue?: number, maxValue?: number) => Gradient)

Type declaration

    • (colors?, minValue?, maxValue?): Gradient
    • Creates a new gradient with equidistant stops.

      Parameters

      • Optionalcolors: readonly ColorLike[]

        The list of colors that comprise the gradient.

      • minValue: number = 0

        The value of the first color in colors.

      • maxValue: number = ...

        The value of the last color in colors.

      Returns Gradient