Class ColorList

Defines a list of colors.

ColorList

Constructors

Properties

colors: Map<string, Color>

The colors in the list.

Memberof

ColorList

Methods

  • Adds a color to the list.

    Parameters

    • Rest ...colors: Color[]

      The colors to add.

    Returns void

    Memberof

    ColorList

  • Returns the color with the specified name.

    Parameters

    • name: string

    Returns Color

    Memberof

    ColorList

  • Returns the color at the specified index.

    Parameters

    • index: number

      The index of the color.

    Returns Color

  • Returns the keys of the color list.

    Returns string[]

    Memberof

    ColorList

Generated using TypeDoc