| Modifier and Type | Field and Description |
|---|---|
static Color |
Color.BLACK |
static Color |
Color.BLUE |
static Color |
Color.CLEAR |
static Color |
Color.CYAN |
static Color |
Color.DARK_GRAY |
static Color |
Color.GRAY |
static Color |
Color.GREEN |
static Color |
Color.LIGHT_GRAY |
static Color |
Color.MAGENTA |
static Color |
Color.ORANGE |
static Color |
Color.PINK |
static Color |
Color.RED |
static Color |
Color.tmp
Deprecated.
|
static Color |
Color.WHITE |
static Color |
Color.YELLOW |
| Modifier and Type | Method and Description |
|---|---|
Color |
Color.add(Color color)
Adds the given color to this color.
|
Color |
Color.add(float r,
float g,
float b,
float a) |
Color |
Color.clamp() |
Color |
Color.cpy() |
Color |
Color.lerp(Color target,
float t)
Linearly interpolates between this color and the target color by t which is in the range [0,1].
|
Color |
Color.lerp(float r,
float g,
float b,
float a,
float t)
Linearly interpolates between this color and the target color by t which is in the range [0,1].
|
Color |
Color.mul(Color color)
Multiplies the this color and the given color
|
Color |
Color.mul(float value)
Multiplies all components of this Color with the given value.
|
Color |
Color.mul(float r,
float g,
float b,
float a) |
Color |
Color.set(Color color)
Sets this color to the given color.
|
Color |
Color.set(float r,
float g,
float b,
float a) |
Color |
Color.sub(Color color)
Subtracts the given color from this color
|
Color |
Color.sub(float r,
float g,
float b,
float a) |
Color |
Color.tmp()
Returns a temporary copy of this color.
|
static Color |
Color.valueOf(java.lang.String hex)
Returns a new color from a hex string with the format RRGGBBAA.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
Color.add(Color color)
Adds the given color to this color.
|
Color |
Color.lerp(Color target,
float t)
Linearly interpolates between this color and the target color by t which is in the range [0,1].
|
Color |
Color.mul(Color color)
Multiplies the this color and the given color
|
static int |
Color.rgb565(Color color) |
static void |
Color.rgb565ToColor(Color color,
int value)
Sets the Color components using the specified integer value in the format RGB565.
|
static int |
Color.rgb888(Color color) |
static void |
Color.rgb888ToColor(Color color,
int value)
Sets the Color components using the specified integer value in the format RGB888.
|
static int |
Color.rgba4444(Color color) |
static void |
Color.rgba4444ToColor(Color color,
int value)
Sets the Color components using the specified integer value in the format RGBA4444.
|
static int |
Color.rgba8888(Color color) |
static void |
Color.rgba8888ToColor(Color color,
int value)
Sets the Color components using the specified integer value in the format RGBA8888.
|
Color |
Color.set(Color color)
Sets this color to the given color.
|
void |
Pixmap.setColor(Color color)
Sets the color for the following drawing operations.
|
Color |
Color.sub(Color color)
Subtracts the given color from this color
|
| Constructor and Description |
|---|
Color(Color color)
Constructs a new color using the given color
|
| Modifier and Type | Method and Description |
|---|---|
Color |
BitmapFont.getColor()
Returns the color of this font.
|
Color |
BitmapFontCache.getColor() |
Color |
NinePatch.getColor() |
Color |
PolygonSprite.getColor()
Returns the color of this sprite.
|
Color |
PolygonSpriteBatch.getColor() |
Color |
Sprite.getColor()
Returns the color of this sprite.
|
Color |
SpriteBatch.getColor() |
Color |
SpriteCache.getColor() |
| Modifier and Type | Method and Description |
|---|---|
void |
BitmapFont.setColor(Color color) |
void |
BitmapFontCache.setColor(Color tint) |
void |
NinePatch.setColor(Color color)
Copy given color.
|
void |
PolygonSprite.setColor(Color tint) |
void |
PolygonSpriteBatch.setColor(Color tint)
Sets the color used to tint images when they are added to the SpriteBatch.
|
void |
Sprite.setColor(Color tint) |
void |
SpriteBatch.setColor(Color tint)
Sets the color used to tint images when they are added to the SpriteBatch.
|
void |
SpriteCache.setColor(Color tint)
Sets the color used to tint images when they are added to the SpriteCache.
|
void |
BitmapFontCache.setColor(Color tint,
int start,
int end)
Sets the color of the specified characters.
|
| Constructor and Description |
|---|
NinePatch(NinePatch ninePatch,
Color color) |
NinePatch(Texture texture,
Color color)
Construct a degenerate "nine" patch with only a center component.
|
NinePatch(TextureRegion region,
Color color)
Construct a degenerate "nine" patch with only a center component.
|
| Modifier and Type | Field and Description |
|---|---|
Color |
ColorAttribute.color |
| Constructor and Description |
|---|
ColorAttribute(Color color,
java.lang.String name)
Creates a
MaterialAttribute that is a pure Color. |
| Modifier and Type | Method and Description |
|---|---|
void |
ShapeRenderer.rect(float x,
float y,
float width,
float height,
Color col1,
Color col2,
Color col3,
Color col4)
Draws a rectangle in the x/y plane.
|
void |
ShapeRenderer.setColor(Color color)
Sets the
Color to be used by shapes. |
void |
ShaderProgram.setUniformf(int location,
Color values) |
void |
ShaderProgram.setUniformf(java.lang.String name,
Color values)
Sets the uniform with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
MapObject.getColor() |
| Modifier and Type | Method and Description |
|---|---|
void |
MapObject.setColor(Color color) |
| Modifier and Type | Method and Description |
|---|---|
Color |
Actor.getColor()
Returns the color the actor will be tinted when drawn.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Actor.setColor(Color color) |
| Modifier and Type | Method and Description |
|---|---|
Color |
AlphaAction.getColor() |
Color |
ColorAction.getColor() |
Color |
ColorAction.getEndColor() |
| Modifier and Type | Method and Description |
|---|---|
static ColorAction |
Actions.color(Color color)
Sets the actor's color instantly.
|
static ColorAction |
Actions.color(Color color,
float duration)
Transitions from the color at the time this action starts to the specified color.
|
static ColorAction |
Actions.color(Color color,
float duration,
Interpolation interpolation)
Transitions from the color at the time this action starts to the specified color.
|
void |
AlphaAction.setColor(Color color)
Sets the color to modify.
|
void |
ColorAction.setColor(Color color)
Sets the color to modify.
|
void |
ColorAction.setEndColor(Color color)
Sets the color to transition to.
|
| Modifier and Type | Field and Description |
|---|---|
Color |
TextButton.TextButtonStyle.checkedFontColor
Optional.
|
Color |
TextButton.TextButtonStyle.checkedOverFontColor
Optional.
|
Color |
Skin.TintedDrawable.color |
Color |
TextButton.TextButtonStyle.disabledFontColor
Optional.
|
Color |
TextField.TextFieldStyle.disabledFontColor |
Color |
TextButton.TextButtonStyle.downFontColor
Optional.
|
Color |
Label.LabelStyle.fontColor
Optional.
|
Color |
SelectBox.SelectBoxStyle.fontColor |
Color |
TextButton.TextButtonStyle.fontColor
Optional.
|
Color |
TextField.TextFieldStyle.fontColor |
Color |
List.ListStyle.fontColorSelected |
Color |
List.ListStyle.fontColorUnselected |
Color |
TextField.TextFieldStyle.messageFontColor
Optional.
|
Color |
TextButton.TextButtonStyle.overFontColor
Optional.
|
Color |
Window.WindowStyle.titleFontColor
Optional.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
Skin.getColor(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
Cell |
Table.add(java.lang.String text,
java.lang.String fontName,
Color color)
Adds a new cell with a label.
|
Drawable |
Skin.newDrawable(Drawable drawable,
Color tint)
Returns a tinted copy of a drawable found in the skin via
Skin.getDrawable(String). |
Drawable |
Skin.newDrawable(java.lang.String name,
Color tint)
Returns a tinted copy of a drawable found in the skin via
Skin.getDrawable(String). |
| Constructor and Description |
|---|
CheckBox.CheckBoxStyle(Drawable checkboxOff,
Drawable checkboxOn,
BitmapFont font,
Color fontColor) |
Label.LabelStyle(BitmapFont font,
Color fontColor) |
Label(java.lang.CharSequence text,
Skin skin,
java.lang.String fontName,
Color color)
Creates a label, using a
Label.LabelStyle that has a BitmapFont with the specified name from the skin and the specified
color. |
List.ListStyle(BitmapFont font,
Color fontColorSelected,
Color fontColorUnselected,
Drawable selection) |
SelectBox.SelectBoxStyle(BitmapFont font,
Color fontColor,
Drawable background,
Drawable listBackground,
Drawable listSelection) |
TextField.TextFieldStyle(BitmapFont font,
Color fontColor,
Drawable cursor,
Drawable selection,
Drawable background) |
Window.WindowStyle(BitmapFont titleFont,
Color titleFontColor,
Drawable background) |