Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 Summary
`ColorList` | `createListFromColor(ReadonlyTColor 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

### createListFromColor

    ColorList createListFromColor(ReadonlyTColor 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.

### getName

    java.lang.String getName()

  Returns the unique name of the strategy.

  Returns:
    name

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD