Example usage for Java com.badlogic.gdx.graphics Color fields, constructors, methods, implement or subclass
The text is from its open source code.
Color | CLEAR |
Color | WHITE |
Color | BLACK |
Color | RED |
Color | GREEN |
Color | BLUE |
Color | LIGHT_GRAY |
Color | GRAY |
Color | DARK_GRAY |
Color | PINK |
Color | ORANGE |
Color | YELLOW |
Color | MAGENTA |
Color | CYAN |
Color | OLIVE |
Color | PURPLE |
Color | MAROON |
Color | TEAL |
Color | NAVY |
Color | tmp |
Color(float r, float g, float b, float a) Constructor, sets the components of the color | |
Color(int rgba8888) | |
Color(Color color) Constructs a new color using the given color | |
Color() Constructs a new Color with all components set to 0. |
Color | add(Color color) Adds the given color to this color. |
Color | add(float r, float g, float b, float a) Adds the given color component values to this Color's values. |
int | argb8888(Color color) |
void | argb8888ToColor(Color color, int value) Sets the Color components using the specified integer value in the format ARGB8888. |
Color | clamp() Clamps this Color's components to a valid range [0 - 1] |
Color | cpy() |
boolean | equals(Object o) |
Color | lerp(final Color target, final float t) Linearly interpolates between this color and the target color by t which is in the range [0,1]. |
Color | mul(Color color) Multiplies the this color and the given color |
Color | mul(float value) Multiplies all components of this Color with the given value. |
Color | mul(float r, float g, float b, float a) Multiplies this Color's color components by the given ones. |
int | rgba8888(float r, float g, float b, float a) |
int | rgba8888(Color color) |
void | rgba8888ToColor(Color color, int value) Sets the Color components using the specified integer value in the format RGBA8888. |
Color | set(float r, float g, float b, float a) Sets this Color's component values. |
Color | set(Color color) Sets this color to the given color. |
Color | set(int rgba) Sets this color's component values through an integer representation. |
Color | sub(Color color) Subtracts the given color from this color |
Color | sub(float r, float g, float b, float a) Subtracts the given values from this Color's component values. |
float | toFloatBits() Packs the color components into a 32-bit integer with the format ABGR and then converts it to a float. |
float | toFloatBits(int r, int g, int b, int a) Packs the color components into a 32-bit integer with the format ABGR and then converts it to a float. |
float | toFloatBits(float r, float g, float b, float a) Packs the color components into a 32-bit integer with the format ABGR and then converts it to a float. |
int | toIntBits() Packs the color components into a 32-bit integer with the format ABGR. |
String | toString() Returns the color encoded as hex string with the format RRGGBBAA. |
Color | valueOf(String hex) Returns a new color from a hex string with the format RRGGBBAA. |