Modifier and Type | Field and Description |
---|---|
Color |
LwjglApplicationConfiguration.initialBackgroundColor |
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.MAROON |
static Color |
Color.NAVY |
static Color |
Color.OLIVE |
static Color |
Color.ORANGE |
static Color |
Color.PINK |
static Color |
Color.PURPLE |
static Color |
Color.RED |
static Color |
Color.TEAL |
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)
Adds the given color component values to this Color's values.
|
Color |
Color.clamp()
Clamps this Color's components to a valid range [0 - 1]
|
Color |
Color.cpy() |
static Color |
Colors.get(java.lang.String name)
Convenience method to lookup a color by
name . |
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)
Multiplies this Color's color components by the given ones.
|
Color |
Color.premultiplyAlpha()
Multiplies the RGB values by the alpha.
|
static Color |
Colors.put(java.lang.String name,
Color color)
Convenience method to add a
color with its name . |
Color |
Color.set(Color color)
Sets this color to the given color.
|
Color |
Color.set(float r,
float g,
float b,
float a)
Sets this Color's component values.
|
Color |
Color.set(int rgba)
Sets this color's component values through an integer representation.
|
Color |
Color.sub(Color color)
Subtracts the given color from this color
|
Color |
Color.sub(float r,
float g,
float b,
float a)
Subtracts the given values from this Color's component values.
|
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 |
---|---|
static ObjectMap<java.lang.String,Color> |
Colors.getColors()
Returns the color map.
|
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 Color |
Colors.put(java.lang.String name,
Color color)
Convenience method to add a
color with its name . |
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 |
Batch.getColor() |
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 |
Batch.setColor(Color tint)
Sets the color used to tint images when they are added to the Batch.
|
void |
BitmapFont.setColor(Color color) |
void |
BitmapFontCache.setColor(Color tint)
Sets the color of subsequently added text.
|
void |
NinePatch.setColor(Color color)
Copy given color.
|
void |
PolygonSprite.setColor(Color tint) |
void |
PolygonSpriteBatch.setColor(Color tint) |
void |
Sprite.setColor(Color tint)
Sets the color used to tint this sprite.
|
void |
SpriteBatch.setColor(Color tint) |
void |
SpriteCache.setColor(Color tint)
Sets the color used to tint images when they are added to the SpriteCache.
|
void |
BitmapFontCache.setColors(Color tint)
Sets the color of all text currently in the cache.
|
void |
BitmapFontCache.setColors(Color tint,
int start,
int end)
Sets the color of the specified characters.
|
void |
BitmapFontCache.tint(Color tint)
Tints all text currently in the cache.
|
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 |
Modifier and Type | Method and Description |
---|---|
static ColorAttribute |
ColorAttribute.createAmbient(Color color) |
static ColorAttribute |
ColorAttribute.createDiffuse(Color color) |
static ColorAttribute |
ColorAttribute.createReflection(Color color) |
static ColorAttribute |
ColorAttribute.createSpecular(Color color) |
Constructor and Description |
---|
ColorAttribute(long type,
Color color) |
Modifier and Type | Field and Description |
---|---|
protected Color |
Decal.color |
Modifier and Type | Method and Description |
---|---|
Color |
Decal.getColor()
Returns the color of this decal.
|
Modifier and Type | Method and Description |
---|---|
void |
Decal.setColor(Color tint)
Sets the color used to tint this decal.
|
Modifier and Type | Field and Description |
---|---|
Color |
BaseLight.color |
Modifier and Type | Method and Description |
---|---|
Color |
AmbientCubemap.getColor(Color out,
int side) |
Modifier and Type | Method and Description |
---|---|
AmbientCubemap |
AmbientCubemap.add(Color color) |
AmbientCubemap |
AmbientCubemap.add(Color color,
float x,
float y,
float z) |
AmbientCubemap |
AmbientCubemap.add(Color color,
Vector3 direction) |
AmbientCubemap |
AmbientCubemap.add(Color color,
Vector3 point,
Vector3 target) |
AmbientCubemap |
AmbientCubemap.add(Color color,
Vector3 point,
Vector3 target,
float intensity) |
Color |
AmbientCubemap.getColor(Color out,
int side) |
AmbientCubemap |
AmbientCubemap.set(Color color) |
SphericalHarmonics |
SphericalHarmonics.set(Color color) |
DirectionalLight |
DirectionalLight.set(Color color,
float dirX,
float dirY,
float dirZ) |
PointLight |
PointLight.set(Color color,
float x,
float y,
float z,
float intensity) |
DirectionalLight |
DirectionalLight.set(Color color,
Vector3 direction) |
PointLight |
PointLight.set(Color color,
Vector3 position,
float intensity) |
Modifier and Type | Field and Description |
---|---|
Color |
ModelMaterial.ambient |
Color |
ModelMaterial.diffuse |
Color |
ModelMaterial.emissive |
Color |
ModelMaterial.reflection |
Color |
ModelMaterial.specular |
Modifier and Type | Method and Description |
---|---|
boolean |
BaseShader.set(int uniform,
Color value) |
Modifier and Type | Field and Description |
---|---|
Color |
MeshPartBuilder.VertexInfo.color |
Modifier and Type | Method and Description |
---|---|
void |
MeshBuilder.line(Vector3 p1,
Color c1,
Vector3 p2,
Color c2) |
void |
MeshPartBuilder.line(Vector3 p1,
Color c1,
Vector3 p2,
Color c2)
Add a line.
|
MeshPartBuilder.VertexInfo |
MeshPartBuilder.VertexInfo.set(Vector3 pos,
Vector3 nor,
Color col,
Vector2 uv) |
MeshPartBuilder.VertexInfo |
MeshPartBuilder.VertexInfo.setCol(Color col) |
void |
MeshBuilder.setColor(Color color) |
void |
MeshPartBuilder.setColor(Color color)
Set the color used if no vertex color is provided, or null to not use a default color.
|
void |
MeshBuilder.triangle(Vector3 p1,
Color c1,
Vector3 p2,
Color c2,
Vector3 p3,
Color c3) |
void |
MeshPartBuilder.triangle(Vector3 p1,
Color c1,
Vector3 p2,
Color c2,
Vector3 p3,
Color c3)
Add a triangle.
|
short |
MeshBuilder.vertex(Vector3 pos,
Vector3 nor,
Color col,
Vector2 uv) |
short |
MeshPartBuilder.vertex(Vector3 pos,
Vector3 nor,
Color col,
Vector2 uv)
Add a vertex, returns the index.
|
Modifier and Type | Method and Description |
---|---|
Color |
ShapeRenderer.getColor() |
Modifier and Type | Method and Description |
---|---|
void |
ImmediateModeRenderer.color(Color color) |
void |
ImmediateModeRenderer20.color(Color color) |
void |
ShapeRenderer.line(float x,
float y,
float x2,
float y2,
Color c1,
Color c2) |
void |
ShapeRenderer.line(float x,
float y,
float z,
float x2,
float y2,
float z2,
Color c1,
Color c2)
Draws a line using
ShapeRenderer.ShapeType.Line or ShapeRenderer.ShapeType.Filled . |
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 using
ShapeRenderer.ShapeType.Line or ShapeRenderer.ShapeType.Filled . |
void |
ShapeRenderer.rect(float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float degrees,
Color col1,
Color col2,
Color col3,
Color col4)
Draws a rectangle in the x/y plane using
ShapeRenderer.ShapeType.Line or ShapeRenderer.ShapeType.Filled . |
void |
ShapeRenderer.setColor(Color color)
Sets the color to be used by the next shapes drawn.
|
void |
ShaderProgram.setUniformf(int location,
Color values) |
void |
ShaderProgram.setUniformf(java.lang.String name,
Color values)
Sets the uniform with the given name.
|
void |
ShapeRenderer.triangle(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
Color col1,
Color col2,
Color col3)
Draws a triangle in x/y plane with colored corners using
ShapeRenderer.ShapeType.Line or ShapeRenderer.ShapeType.Filled . |
Modifier and Type | Method and Description |
---|---|
Color |
MapObject.getColor() |
Modifier and Type | Method and Description |
---|---|
void |
MapObject.setColor(Color color) |
Modifier and Type | Field and Description |
---|---|
Color |
Box2DDebugRenderer.AABB_COLOR |
Color |
Box2DDebugRenderer.JOINT_COLOR |
Color |
Box2DDebugRenderer.SHAPE_AWAKE |
Color |
Box2DDebugRenderer.SHAPE_KINEMATIC |
Color |
Box2DDebugRenderer.SHAPE_NOT_ACTIVE |
Color |
Box2DDebugRenderer.SHAPE_NOT_AWAKE |
Color |
Box2DDebugRenderer.SHAPE_STATIC |
Color |
Box2DDebugRenderer.VELOCITY_COLOR |
Modifier and Type | Method and Description |
---|---|
Color |
Actor.getColor()
Returns the color the actor will be tinted when drawn.
|
Color |
Stage.getDebugColor()
The default color that can be used by actors to draw debug lines.
|
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 |
static Color |
Table.debugActorColor |
static Color |
Table.debugCellColor |
static Color |
Table.debugTableColor |
Color |
SelectBox.SelectBoxStyle.disabledFontColor
Optional.
|
Color |
TextButton.TextButtonStyle.disabledFontColor
Optional.
|
Color |
TextField.TextFieldStyle.disabledFontColor
Optional.
|
Color |
TextButton.TextButtonStyle.downFontColor
Optional.
|
Color |
TextField.TextFieldStyle.focusedFontColor
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<Label> |
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 |
---|
CheckBoxStyle(Drawable checkboxOff,
Drawable checkboxOn,
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. |
LabelStyle(BitmapFont font,
Color fontColor) |
ListStyle(BitmapFont font,
Color fontColorSelected,
Color fontColorUnselected,
Drawable selection) |
SelectBoxStyle(BitmapFont font,
Color fontColor,
Drawable background,
ScrollPane.ScrollPaneStyle scrollStyle,
List.ListStyle listStyle) |
TextFieldStyle(BitmapFont font,
Color fontColor,
Drawable cursor,
Drawable selection,
Drawable background) |
WindowStyle(BitmapFont titleFont,
Color titleFontColor,
Drawable background) |