• 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[]) => Gradient)

Type declaration

    • (colors?): Gradient
    • Creates a new gradient.

      Parameters

      • Optionalcolors: readonly ColorLike[]

        The optional list of colors that comprise the gradient. Stop position for each color is set to its index in the array.

      Returns Gradient