Uses of Class
toxi.color.TColor
-
Uses of TColor in toxi.color
Modifier and TypeMethodDescriptionTColor.adjustConstrast
(float amount) Changes the brightness of the color by the given amount in the direction towards either the black or white point (depending on if current brightness >= 50%)TColor.adjustHSV
(float h, float s, float v) Adds the given HSV values as offsets to the current color.TColor.adjustRGB
(float r, float g, float b) Adds the given RGB values as offsets to the current color.TColor.analog
(float theta, float delta) Rotates this color by a random amount (not exceeding the one specified) and creates variations in saturation and brightness based on the 2nd parameter.TColor.analog
(int angle, float delta) TColor.blend
(ReadonlyTColor c, float t) Blends the color with the given one by the stated amountTColor.complement()
ReadonlyTColor.copy()
TColor.copy()
TColor.darken
(float step) Reduces the color's brightness by the given amount (e.g 0.1 = 10% darker).TColor.desaturate
(float step) Reduced the color's saturation by the given amount.TColor.differenceTo
(TColor c) ColorList.get
(int i) Returns the color at the given index.ReadonlyTColor.getAnalog
(float theta, float delta) ReadonlyTColor.getAnalog
(int angle, float delta) TColor.getAnalog
(float theta, float delta) TColor.getAnalog
(int angle, float delta) ReadonlyTColor.getBlended
(ReadonlyTColor c, float t) TColor.getBlended
(ReadonlyTColor c, float t) ColorRange.getColor()
Creates a new color based on the flexible constraints of the range.Creates a new shade of the given hue based on the other constraints of the range.ColorRange.getColor
(ReadonlyTColor c, float variance) Creates a new color based on the constraints defined in the range.ColorTheme.getColor()
HistEntry.getColor()
Returns the color of this histogram entry.ReadonlyTColor.getComplement()
TColor.getComplement()
ReadonlyTColor.getDarkened
(float step) TColor.getDarkened
(float step) ColorList.getDarkest()
Finds and returns the darkest color of the list.ReadonlyTColor.getDesaturated
(float step) TColor.getDesaturated
(float step) TColor.getDifferenceTo
(TColor c) ColorRange.getGrayscale
(float brightness, float variance) Creates a new shade of gray based on the input brightness and the black and white constraints of the range.ReadonlyTColor.getInverted()
TColor.getInverted()
ReadonlyTColor.getLightened
(float step) TColor.getLightened
(float step) ColorList.getRandom()
ReadonlyTColor.getRotatedRYB
(float theta) ReadonlyTColor.getRotatedRYB
(int angle) TColor.getRotatedRYB
(float theta) TColor.getRotatedRYB
(int angle) ReadonlyTColor.getSaturated
(float step) TColor.getSaturated
(float step) TColor.invert()
Inverts the color.TColor.lighten
(float step) Lightens the color by stated amount.static final TColor
TColor.newARGB
(int argb) Factory method.static final TColor
TColor.newCMYK
(float c, float m, float y, float k) Factory method.static final TColor
TColor.newCMYKA
(float c, float m, float y, float k, float a) Factory method.static final TColor
TColor.newGray
(float gray) Factory method.static final TColor
TColor.newGrayAlpha
(float gray, float alpha) Factory method.static final TColor
Factory method.static final TColor
TColor.newHSV
(float h, float s, float v) Factory method.static final TColor
TColor.newHSVA
(float h, float s, float v, float a) static final TColor
TColor.newRandom()
Factory method.static final TColor
TColor.newRGB
(float r, float g, float b) Factory method.static final TColor
TColor.newRGBA
(float r, float g, float b, float a) TColor.rotateRYB
(float theta) TColor.rotateRYB
(int theta) Rotates the color by x degrees along the RYB color wheelTColor.saturate
(float step) Adds the given value to the current saturation component.TColor.setAlpha
(float alpha) TColor.setARGB
(int argb) Sets all color components to new values interpreted from the given packed ARGB 32bit color value.TColor.setBlack
(float val) TColor.setBlue
(float blue) TColor.setBrightness
(float brightness) TColor.setCMYK
(float[] newCMYK) TColor.setCMYK
(float c, float m, float y, float k) TColor.setComponent
(AccessCriteria criteria, float val) Sets a color component by name.TColor.setCyan
(float val) TColor.setGreen
(float green) TColor.setHSV
(float[] newHSV) TColor.setHSV
(float h, float s, float v) TColor.setHue
(float hue) TColor.setMagenta
(float val) TColor.setRed
(float red) TColor.setRGB
(float[] newRGB) TColor.setRGB
(float r, float g, float b) TColor.setSaturation
(float saturation) TColor.setYellow
(float val) Modifier and TypeMethodDescriptionColorList.iterator()
Returns an iterator over the internal list.Modifier and TypeMethodDescriptionstatic final ColorList
ColorList.createUsingStrategy
(String name, TColor c) Factory method.static final ColorList
ColorList.createUsingStrategy
(ColorTheoryStrategy strategy, TColor c) Factory method.TColor.differenceTo
(TColor c) TColor.getDifferenceTo
(TColor c) abstract void
AccessCriteria.setComponentValueFor
(TColor col, float value) void
AlphaAccessor.setComponentValueFor
(TColor col, float value) void
CMYKAccessor.setComponentValueFor
(TColor col, float val) void
HSVAccessor.setComponentValueFor
(TColor col, float val) void
LuminanceAccessor.setComponentValueFor
(TColor col, float value) The setter for this accessor is not doing anything, since the luminance of a color is a coputed value depending on 3 color channels.void
RGBAccessor.setComponentValueFor
(TColor col, float val) Modifier and TypeMethodDescriptionColorList.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).ModifierConstructorDescriptionColorList
(Collection<TColor> colors) Creates a ColorList by wrapping the given ArrayList of colors.