Package toxi.color
Class LuminanceAccessor
java.lang.Object
toxi.color.AccessCriteria
toxi.color.LuminanceAccessor
- All Implemented Interfaces:
Comparator<ReadonlyTColor>
Compares 2 colors by their luminance values.
-
Field Summary
Fields inherited from class toxi.color.AccessCriteria
ALPHA, BLACK, BLUE, BRIGHTNESS, CYAN, GREEN, HUE, LUMINANCE, MAGENTA, RED, SATURATION, YELLOW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
float
void
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.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
LuminanceAccessor
public LuminanceAccessor()
-
-
Method Details
-
compare
-
getComponentValueFor
- Specified by:
getComponentValueFor
in classAccessCriteria
-
setComponentValueFor
The setter for this accessor is not doing anything, since the luminance of a color is a coputed value depending on 3 color channels.- Specified by:
setComponentValueFor
in classAccessCriteria
- See Also:
-