Class Color
java.lang.Object
de.luckymcdev.foundryengine.common.util.color.Color
Utility class for handling Colors.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal floatstatic final Colorfinal floatstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorfinal floatstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorfinal floatstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Color -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WHITE
-
LIGHT_GRAY
-
GRAY
-
DARK_GRAY
-
BLACK
-
RED
-
PINK
-
ORANGE
-
YELLOW
-
GREEN
-
MAGENTA
-
CYAN
-
BLUE
-
PURPLE
-
VIOLET
-
BROWN
-
TAN
-
BEIGE
-
TEAL
-
TURQUOISE
-
GOLD
-
SILVER
-
SALMON
-
CORAL
-
NAVY
-
MAROON
-
OLIVE
-
LIME
-
AQUAMARINE
-
CORNFLOWER_BLUE
-
SLATE_BLUE
-
HOT_PINK
-
INDIGO
-
CRIMSON
-
FOREST_GREEN
-
r
public final float r -
g
public final float g -
b
public final float b -
a
public final float a
-
-
Constructor Details
-
Color
public Color(float r, float g, float b, float a) -
Color
public Color(int r, int g, int b) -
Color
public Color(int r, int g, int b, int a) -
Color
public Color(int argb) -
Color
public Color(float[] floats)
-
-
Method Details
-
rgb
public int rgb()Returns the color as an integer in RGB format (Alpha is forced to 255). -
argb
public int argb()Returns the color as an integer in ARGB format. -
lerp
-
toFloatArray
public float[] toFloatArray() -
r
public float r() -
g
public float g() -
b
public float b() -
a
public float a()
-