public final class ColorUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
WHITE |
| Modifier and Type | Method and Description |
|---|---|
static int |
getAlphaU8(int color)
Get the alpha component of an ARGB color as an int in [0, 255].
|
static int |
getBlueU8(int color)
Get the blue component of an ARGB color as an int in [0, 255].
|
static int |
getColorByIndex(int index)
Get an ARGB color value for the dye color with the specified index.
|
static int |
getGreenU8(int color)
Get the alpha component of an ARGB color as an int in [0, 255].
|
static int |
getRedU8(int color)
Get the red component of an ARGB color as an int in [0, 255].
|
public static int getColorByIndex(int index)
index - the index to get the color for.public static int getAlphaU8(int color)
color - the color to get the blue component for.public static int getRedU8(int color)
color - the color to get the red component for.public static int getGreenU8(int color)
color - the color to get the green component for.public static int getBlueU8(int color)
color - the color to get the blue component for.