Package toxi.color
package toxi.color
-
ClassDescriptionDefines standard color component access criterias and associated comparators used to sort colors based on component values.Compares 2 colors by their alpha value.Compares 2 colors by one of their CMYK component values.Implements the
DistanceProxy
interface to sort colors by CMYK distance (used byColorList.sortByDistance(DistanceProxy, boolean)
).This class can be used to calculate multi-color gradients with colors positioned along an imaginary axis.A container class of concrete colors.A ColorTheme is a weighted collection ofColorRange
s used to define custom palettes with a certain balance between individual colors/shades.A proxy interface to support the sorting of colors in different color spaces.This class constitutes a single histogram entry, a coupling of color & frequency.This class can be used to compute the distribution frequency of colors within a givenColorList
.Compares 2 colors by one of their HSV component values.Implements theDistanceProxy
interface to sort colors by HSV distance (used byColorList.sortByDistance(DistanceProxy, boolean)
).This class defines color hues and allows them to be access by name.Compares 2 colors by their luminance values.Defines a list of named colors across the spectrum and provides a means to access them by name (strings) dynamically (e.g.Compares two colors by their distance to the given target color.Defines an immutable API for the TColor class.Compares 2 colors by one of their RGB component values.Implements theDistanceProxy
interface to sort colors by RGB distance (used byColorList.sortByDistance(DistanceProxy, boolean)
).Floating point color class with implicit RGB, HSV, CMYK access modes, conversion and color theory utils.