Package toxi.color.theory
Class CompoundTheoryStrategy
java.lang.Object
toxi.color.theory.CompoundTheoryStrategy
- All Implemented Interfaces:
ColorTheoryStrategy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newColorListof colors for the supplied source color based on the strategy.getName()Returns the unique name of the strategy.booleanvoidsetFlipped(boolean state) toString()
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
CompoundTheoryStrategy
public CompoundTheoryStrategy() -
CompoundTheoryStrategy
public CompoundTheoryStrategy(boolean flipped)
-
-
Method Details
-
createListFromColor
Description copied from interface:ColorTheoryStrategyCreates a newColorListof colors for the supplied source color based on the strategy. The number of colors returned is unspecified and depends on the strategy.- Specified by:
createListFromColorin interfaceColorTheoryStrategy- Parameters:
src- source color- Returns:
- list of matching colors created by the strategy.
-
getName
Description copied from interface:ColorTheoryStrategyReturns the unique name of the strategy.- Specified by:
getNamein interfaceColorTheoryStrategy- Returns:
- name
-
isFlipped
public boolean isFlipped() -
setFlipped
public void setFlipped(boolean state) -
toString
-