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.

Author:
toxi

Method Summary
 ColorList createListFromColour(Color src)
          Creates a new ColorList of colors for the supplied source color based on the strategy.
 java.lang.String getName()
          Returns the unique name of the strategy.
 

Method Detail

getName

java.lang.String getName()
Returns the unique name of the strategy.

Returns:
name

createListFromColour

ColorList createListFromColour(Color src)
Creates a new ColorList 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.