|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ReadonlyTColor | |
---|---|
toxi.color | |
toxi.color.theory |
Uses of ReadonlyTColor in toxi.color |
---|
Classes in toxi.color that implement ReadonlyTColor | |
---|---|
class |
TColor
Floating point color class with implicit RGB, HSV, CMYK access modes, conversion and color theory utils. |
Methods in toxi.color that return ReadonlyTColor | |
---|---|
ReadonlyTColor |
TColor.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%) |
ReadonlyTColor |
TColor.adjustHSV(float h,
float s,
float v)
Adds the given HSV values as offsets to the current color. |
ReadonlyTColor |
TColor.adjustRGB(float r,
float g,
float b)
Adds the given RGB values as offsets to the current color. |
ReadonlyTColor |
ColorList.getAverage()
Calculates and returns the average color of the list. |
static ReadonlyTColor |
NamedColor.getForName(java.lang.String name)
Returns a color for the given name. |
ReadonlyTColor |
ColorList.getLightest()
Finds and returns the lightest (luminance) color of the list. |
ReadonlyTColor |
ToneMap.getToneFor(float t)
|
static ReadonlyTColor |
TColor.newHSV(Hue h,
float s,
float v)
|
Methods in toxi.color with parameters of type ReadonlyTColor | |
---|---|
ColorRange |
ColorRange.add(ReadonlyTColor c)
Adds the HSV color components as constraints. |
ColorList |
ColorList.add(ReadonlyTColor c)
Adds the given color to the list |
void |
ColorGradient.addColorAt(float p,
ReadonlyTColor c)
Adds a new color at specified position. |
ColorTheme |
ColorTheme.addRange(ColorRange range,
ReadonlyTColor col,
float weight)
|
TColor |
TColor.blend(ReadonlyTColor c,
float t)
Blends the color with the given one by the stated amount |
int |
RGBAccessor.compare(ReadonlyTColor a,
ReadonlyTColor b)
|
int |
ProximityComparator.compare(ReadonlyTColor a,
ReadonlyTColor b)
|
int |
LuminanceAccessor.compare(ReadonlyTColor a,
ReadonlyTColor b)
|
int |
HSVAccessor.compare(ReadonlyTColor a,
ReadonlyTColor b)
|
int |
CMYKAccessor.compare(ReadonlyTColor a,
ReadonlyTColor b)
|
int |
AlphaAccessor.compare(ReadonlyTColor a,
ReadonlyTColor b)
|
boolean |
ColorRange.contains(ReadonlyTColor c)
Checks if all HSVA components of the given color are within the constraints defined for this range. |
boolean |
ColorList.contains(ReadonlyTColor color)
Checks if the given color is part of the list. |
ColorRange |
ColorRange.copy(ReadonlyTColor c,
float variance)
Creates a copy of the range but overrides the hue and alpha constraints taken from the given color (if specified). |
float |
RGBDistanceProxy.distanceBetween(ReadonlyTColor a,
ReadonlyTColor b)
|
float |
HSVDistanceProxy.distanceBetween(ReadonlyTColor a,
ReadonlyTColor b)
|
float |
DistanceProxy.distanceBetween(ReadonlyTColor a,
ReadonlyTColor b)
Computes the distance between 2 colors. |
float |
CMYKDistanceProxy.distanceBetween(ReadonlyTColor a,
ReadonlyTColor b)
|
float |
TColor.distanceToCMYK(ReadonlyTColor c)
|
float |
ReadonlyTColor.distanceToCMYK(ReadonlyTColor c)
Calculates the CMYK distance to the given color. |
float |
TColor.distanceToHSV(ReadonlyTColor c)
|
float |
ReadonlyTColor.distanceToHSV(ReadonlyTColor c)
Calculates the HSV distance to the given color. |
float |
TColor.distanceToRGB(ReadonlyTColor c)
|
float |
ReadonlyTColor.distanceToRGB(ReadonlyTColor c)
Calculates the RGB distance to the given color. |
TColor |
TColor.getBlended(ReadonlyTColor c,
float t)
|
TColor |
ReadonlyTColor.getBlended(ReadonlyTColor c,
float t)
|
TColor |
ColorRange.getColor(ReadonlyTColor c,
float variance)
Creates a new color based on the constraints defined in the range. |
ColorList |
ColorRange.getColors(ReadonlyTColor c,
int num,
float variance)
Creates a new ColorList of shades of the given TColor
based on the other constraints of the range. |
float |
RGBAccessor.getComponentValueFor(ReadonlyTColor col)
|
float |
LuminanceAccessor.getComponentValueFor(ReadonlyTColor col)
|
float |
HSVAccessor.getComponentValueFor(ReadonlyTColor col)
|
float |
CMYKAccessor.getComponentValueFor(ReadonlyTColor col)
|
float |
AlphaAccessor.getComponentValueFor(ReadonlyTColor col)
|
abstract float |
AccessCriteria.getComponentValueFor(ReadonlyTColor col)
|
ColorList |
ColorList.sortByProximityTo(ReadonlyTColor target,
boolean isReversed)
Sorts the list by proximity to the given target color (using RGB distance metrics). |
ColorList |
ColorList.sortByProximityTo(ReadonlyTColor target,
DistanceProxy proxy,
boolean isReversed)
Sorts the list by proximity to the given target color using the given DistanceProxy implementation. |
Method parameters in toxi.color with type arguments of type ReadonlyTColor | |
---|---|
ColorList |
ColorList.sortByComparator(java.util.Comparator<ReadonlyTColor> comp,
boolean isReversed)
Sorts the list using the given comparator. |
Constructors in toxi.color with parameters of type ReadonlyTColor | |
---|---|
ColorList(ReadonlyTColor... colorArray)
Creates new ColorList from the given number of colors. |
|
ColorRange(ReadonlyTColor c)
Constructs a new range using the hue of the given color as hue constraint, but saturation and brightness are fully flexible. |
|
ProximityComparator(ReadonlyTColor col,
DistanceProxy proxy)
|
|
TColor(ReadonlyTColor c)
Creates a deep copy of the given color. |
|
ToneMap(float a,
float b,
ReadonlyTColor colA,
ReadonlyTColor colB)
|
|
ToneMap(float min,
float max,
ReadonlyTColor colA,
ReadonlyTColor colB,
int res)
|
Uses of ReadonlyTColor in toxi.color.theory |
---|
Methods in toxi.color.theory with parameters of type ReadonlyTColor | |
---|---|
ColorList |
TriadTheoryStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
TetradTheoryStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
SplitComplementaryStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
SingleComplementStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
RightSplitComplementaryStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
MonochromeTheoryStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
LeftSplitComplementaryStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
CompoundTheoryStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
ComplementaryStrategy.createListFromColor(ReadonlyTColor src)
|
ColorList |
ColorTheoryStrategy.createListFromColor(ReadonlyTColor src)
Creates a new ColorList of colors for the supplied source color
based on the strategy. |
ColorList |
AnalogousStrategy.createListFromColor(ReadonlyTColor src)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |