Package toxi.color
Class ColorTheme
java.lang.Object
toxi.color.ColorTheme
A ColorTheme is a weighted collection of
ColorRange
s used to define
custom palettes with a certain balance between individual colors/shades. New
theme parts can be added via textual descriptors referring to one of the
preset ColorRange
s and/or NamedColor
s: e.g.
"warm springgreen". For each theme part a weight has to be specified. The
magnitude of the weight value is irrelevant and is only important in relation
to the weights of other theme parts. For example: Theme part A with a weight
of 0.5 will only have 1/20 of the weight of theme part B with a weight of
5.0...-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddRange
(ColorRange range, ReadonlyTColor col, float weight) getColor()
getColors
(int num) getName()
-
Constructor Details
-
ColorTheme
-
-
Method Details
-
addRange
-
addRange
-
getColor
-
getColors
- Parameters:
num
- number of colors to create- Returns:
- new list
-
getName
- Returns:
- the theme's name
-