Package toxi.color.theory
Interface ColorTheoryStrategy
- All Known Implementing Classes:
AnalogousStrategy
,ComplementaryStrategy
,CompoundTheoryStrategy
,LeftSplitComplementaryStrategy
,MonochromeTheoryStrategy
,RightSplitComplementaryStrategy
,SingleComplementStrategy
,SplitComplementaryStrategy
,TetradTheoryStrategy
,TriadTheoryStrategy
public interface ColorTheoryStrategy
A simple interface for implementing rules used to create color palettes. The
library currently comes with 10 default implementations realising different
color theory approaches.
-
Method Details
-
createListFromColor
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.- Parameters:
src
- source color- Returns:
- list of matching colors created by the strategy.
-
getName
String getName()Returns the unique name of the strategy.- Returns:
- name
-