| java.lang.Object snow.utils.gui.Colors
Colors | final public class Colors (Code) | | |
createContrastedColor | public static Color createContrastedColor(Color c, float percent)(Code) | | Brighter or darker depending on the average grayscale.
Brighter doesn't work... (HAS AN ERROR: black.brighter should give gray(128.128.128), as stated in the
doc of Color, but it gives(3,3,3))
Parameters: percent - use at least 30% to get good contrast. |
getAverageGrayScale | final public static int getAverageGrayScale(Color c)(Code) | | in [0,255].
White: 255
Black
|
|
|