public final class ColorUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static float |
getAlpha(int color)
Get the alpha component of an ARGB color as a float in [0, 1].
|
static float |
getBlue(int color)
Get the blue component of an ARGB color as a float in [0, 1].
|
static int |
getColorByIndex(int index)
Get an ARGB color value for the dye color with the specified index.
|
static float |
getGreen(int color)
Get the alpha component of an ARGB color as a float in [0, 1].
|
static float |
getRed(int color)
Get the red component of an ARGB color as a float in [0, 1].
|
public static int getColorByIndex(int index)
index - the index to get the color for.public static float getAlpha(int color)
color - the color to get the alpha component for.public static float getRed(int color)
color - the color to get the red component for.public static float getGreen(int color)
color - the color to get the green component for.public static float getBlue(int color)
color - the color to get the blue component for.