Package toxi.color.theory
Class TetradTheoryStrategy
java.lang.Object
toxi.color.theory.TetradTheoryStrategy
- All Implemented Interfaces:
ColorTheoryStrategy
Implements the tetradic color scheme to create 4 compatible colors for the given one.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTetradTheoryStrategy(int theta) Constructs a new instance with the given color offset angle. -
Method Summary
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TetradTheoryStrategy
public TetradTheoryStrategy() -
TetradTheoryStrategy
public TetradTheoryStrategy(int theta) Constructs a new instance with the given color offset angle.- Parameters:
theta- hue rotation angle in degrees
-
-
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
-
toString
-