AbstractProtected
constructor
Optional randomOrder: boolean
A flag that determines the color selection order of selectColorFromChoices.
Private Readonly _colorA set list of Color objects that the selector can choose from.
Private Readonly _randomA flag that determines the color selection order
of selectColorFromChoices.
When true, selectColorFromChoices
will select colors
from _colorChoices in a
random order.
When false, selectColorFromChoices will select colors
list order.
Private _currentThe current index of _colorChoices being chosen
when colors are selected in list order (i.e. _randomOrder is false).
Abstract name
The name of the selector (e.g. 'blue rgb color selector').
Abstract colorA list of the names of the colors the selector is choosing from.
Abstract type
The ColorSelectorType of the selector.
Abstract getThe selected Color from the _colorChoices
list.
If _colorChoices is
empty, a default Color
object (black) will be returned.
Protected addAdd a Color to the _colorChoices list.
Private incrementIncrement _currentIndex to select the next Color element in the _colorChoices list.
ColorSelectors choose and return colors from some set list or criteria.