Klasse Color
java.lang.Object
de.luckymcdev.foundryengine.common.util.color.Color
Utility class for handling Colors.
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungfinal 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 Colorstatic final Color -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfloata()intargb()Returns the color as an integer in ARGB format.floatb()floatg()static Colorhsb(float hue, float saturation, float brightness, int alpha) Linearly interpolates between this color and another color.static Colorof(float a, float r, float g, float b) static Colorof(int argb) static Colorof(int r, int g, int b) static Colorof(int a, int r, int g, int b) static ColorofABGR(int abgr) static ColorofRGB(int rgb) floatr()intrgb()Returns the color as an integer in RGB format (Alpha is forced to 255).float[]
-
Felddetails
-
TRANSPARENT
-
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
-
-
Konstruktordetails
-
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)
-
-
Methodendetails
-
hsb
-
of
-
ofABGR
-
ofRGB
-
of
-
of
-
of
-
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()
-