Uses of Class
toxi.color.ColorList
-
Uses of ColorList in toxi.color
Modifier and TypeMethodDescriptionColorList.add
(ReadonlyTColor c) Adds a copy of the given color to the listColorList.addAll
(Collection<TColor> collection) Adds all entries of the TColor collection to the list (shallow copy only, manipulating the new list will modify the original colors).ColorList.adjustBrightness
(float step) Adjusts the brightness component of all list colors by the given amount.ColorList.adjustSaturation
(float step) Adjusts the saturation component of all list colors by the given amount.ColorGradient.calcGradient()
ColorGradient.calcGradient
(float pos, int width) Calculates the gradient from specified position.ColorList.clusterSort
(AccessCriteria clusterCriteria, AccessCriteria subClusterCriteria, int numClusters, boolean isReversed) Sorts the list based on two criteria to create clusters/segments within the list.ColorList.complement()
Switches all list colors to their complementary color.static final ColorList
ColorList.createFromARGBArray
(int[] pixels, int num, boolean uniqueOnly) Factory method.static final ColorList
ColorList.createFromARGBArray
(int[] pixels, int num, boolean uniqueOnly, int maxIterations) Factory method.static final ColorList
ColorList.createUsingStrategy
(String name, TColor c) Factory method.static final ColorList
ColorList.createUsingStrategy
(ColorTheoryStrategy strategy, TColor c) Factory method.ColorList.getBlended
(float amount) Creates a new ColorList by blending all colors in the list with each other (successive indices only)ColorRange.getColors
(int num) Creates a newColorList
of colors based on the constraints of this range.ColorRange.getColors
(ReadonlyTColor c, int num, float variance) ColorTheme.getColors
(int num) Histogram.getPalette()
Returns the list of source colorsColorList.getReverse()
Returns a reversed copy of the current list.ColorList.invert()
Inverts all colors in the list.ColorList.reverse()
Reverses the current order of the list.ColorList.rotateRYB
(float theta) Rotates the hues of all colors in the list by the given amount.ColorList.rotateRYB
(int angle) Rotates the hues of all colors in the list by the given amount.ColorList.sort()
Convenience method.ColorList.sortByComparator
(Comparator<ReadonlyTColor> comp, boolean isReversed) Sorts the list using the given comparator.ColorList.sortByCriteria
(AccessCriteria criteria, boolean isReversed) Sorts the list using the givenAccessCriteria
.ColorList.sortByDistance
(boolean isReversed) Sorts the list by relative distance to each predecessor, starting with the darkest color in the list.ColorList.sortByDistance
(DistanceProxy proxy, boolean isReversed) Sorts the list by relative distance to each predecessor, starting with the darkest color in the list.ColorList.sortByProximityTo
(ReadonlyTColor target, boolean isReversed) Sorts the list by proximity to the given target color (using RGB distance metrics).ColorList.sortByProximityTo
(ReadonlyTColor target, DistanceProxy proxy, boolean isReversed) Sorts the list by proximity to the given target color using the givenDistanceProxy
implementation.Modifier and TypeMethodDescriptionvoid
Histogram.setPalette
(ColorList palette) Configures the histogram instance to use a new list of source colors.ModifierConstructorDescriptionCreates a deep copy of the given ColorList.ColorRange
(ColorList list) Constructs a new range using the given colors as HSV constraints.Constructs a new instance for the givenColorList
. -
Uses of ColorList in toxi.color.theory
Modifier and TypeMethodDescriptionAnalogousStrategy.createListFromColor
(ReadonlyTColor src) ColorTheoryStrategy.createListFromColor
(ReadonlyTColor src) Creates a newColorList
of colors for the supplied source color based on the strategy.ComplementaryStrategy.createListFromColor
(ReadonlyTColor src) CompoundTheoryStrategy.createListFromColor
(ReadonlyTColor src) LeftSplitComplementaryStrategy.createListFromColor
(ReadonlyTColor src) MonochromeTheoryStrategy.createListFromColor
(ReadonlyTColor src) RightSplitComplementaryStrategy.createListFromColor
(ReadonlyTColor src) SingleComplementStrategy.createListFromColor
(ReadonlyTColor src) SplitComplementaryStrategy.createListFromColor
(ReadonlyTColor src) TetradTheoryStrategy.createListFromColor
(ReadonlyTColor src) TriadTheoryStrategy.createListFromColor
(ReadonlyTColor src)