-
- All Implemented Interfaces:
public class ColorUtils
-
-
Field Summary
Fields Modifier and Type Field Description public final static ColorUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final IntegermakeColor(Integer red, Integer green, Integer blue)Package red/green/blue values into a single integer. final IntegermakeColorHSB(Float hue, Float saturation, Float brightness)final IntegergetRed(Integer color)Extract the red component from a color integer. final IntegergetGreen(Integer color)Extract the green component from a color integer. final IntegergetBlue(Integer color)Extract the blue component from a color integer. final IntegerfadeColor(Integer c, Integer brightness)Return a color that has been faded by the given brightness. final IntegermixColor(Integer c1, Integer c2)-
-
Method Detail
-
makeColor
final Integer makeColor(Integer red, Integer green, Integer blue)
Package red/green/blue values into a single integer.
-
makeColorHSB
final Integer makeColorHSB(Float hue, Float saturation, Float brightness)
-
fadeColor
final Integer fadeColor(Integer c, Integer brightness)
Return a color that has been faded by the given brightness.
- Parameters:
brightness- a number from 0 to 255.
-
-
-
-