Package toxi.color.theory
Class ComplementaryStrategy
java.lang.Object
toxi.color.theory.ComplementaryStrategy
- All Implemented Interfaces:
ColorTheoryStrategy
Creates 5 additional colors in relation to the given base color:
- a contrasting color: much darker or lighter than the original.
- a soft supporting color: lighter and less saturated.
- a contrasting complement: very dark or very light.
- the complement and
- a light supporting variant.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ComplementaryStrategy
public ComplementaryStrategy()
-
-
Method Details
-
createListFromColor
Description copied from interface:ColorTheoryStrategy
Creates a newColorList
of colors for the supplied source color based on the strategy. The number of colors returned is unspecified and depends on the strategy.- Specified by:
createListFromColor
in interfaceColorTheoryStrategy
- Parameters:
src
- source color- Returns:
- list of matching colors created by the strategy.
-
getName
Description copied from interface:ColorTheoryStrategy
Returns the unique name of the strategy.- Specified by:
getName
in interfaceColorTheoryStrategy
- Returns:
- name
-
toString
-