Uses of Class
com.badlogic.gdx.graphics.Color
-
-
Uses of Color in com.badlogic.gdx.graphics
Fields in com.badlogic.gdx.graphics declared as Color Modifier and Type Field Description static Color
Color. BLACK
static Color
Color. BLUE
static Color
Color. BROWN
static Color
Color. CHARTREUSE
static Color
Color. CLEAR
static Color
Color. CORAL
static Color
Color. CYAN
static Color
Color. DARK_GRAY
static Color
Color. FIREBRICK
static Color
Color. FOREST
static Color
Color. GOLD
static Color
Color. GOLDENROD
static Color
Color. GRAY
static Color
Color. GREEN
static Color
Color. LIGHT_GRAY
static Color
Color. LIME
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. ROYAL
static Color
Color. SALMON
static Color
Color. SCARLET
static Color
Color. SKY
static Color
Color. SLATE
static Color
Color. TAN
static Color
Color. TEAL
static Color
Color. VIOLET
static Color
Color. WHITE
static Color
Color. YELLOW
Methods in com.badlogic.gdx.graphics that return Color Modifier and Type Method Description Color
Color. add(float r, float g, float b, float a)
Adds the given color component values to this Color's values.Color
Color. add(Color color)
Adds the given color to this color.Color
Color. clamp()
Clamps this Color's components to a valid range [0 - 1]Color
Color. cpy()
Color
Color. fromHsv(float[] hsv)
Sets RGB components using the specified Hue-Saturation-Value.Color
Color. fromHsv(float h, float s, float v)
Sets the RGB Color components using the specified Hue-Saturation-Value.static Color
Colors. get(java.lang.String name)
Convenience method to lookup a color byname
.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. 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(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. mul(Color color)
Multiplies the this color and the given colorColor
Color. premultiplyAlpha()
Multiplies the RGB values by the alpha.static Color
Colors. put(java.lang.String name, Color color)
Convenience method to add acolor
with itsname
.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. set(Color color)
Sets this color to the given color.Color
Color. sub(float r, float g, float b, float a)
Subtracts the given values from this Color's component values.Color
Color. sub(Color color)
Subtracts the given color from this colorstatic Color
Color. valueOf(java.lang.String hex)
Returns a new color from a hex string with the format RRGGBBAA.static Color
Color. valueOf(java.lang.String hex, Color color)
Sets the specified color from a hex string with the format RRGGBBAA.Methods in com.badlogic.gdx.graphics that return types with arguments of type Color Modifier and Type Method Description static ObjectMap<java.lang.String,Color>
Colors. getColors()
Returns the color map.Methods in com.badlogic.gdx.graphics with parameters of type Color Modifier and Type Method Description static void
Color. abgr8888ToColor(Color color, float value)
Sets the Color components using the specified float value in the format ABGR8888.static void
Color. abgr8888ToColor(Color color, int value)
Sets the Color components using the specified integer value in the format ABGR8888.Color
Color. add(Color color)
Adds the given color to this color.static int
Color. argb8888(Color color)
static void
Color. argb8888ToColor(Color color, int value)
Sets the Color components using the specified integer value in the format ARGB8888.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 colorstatic Color
Colors. put(java.lang.String name, Color color)
Convenience method to add acolor
with itsname
.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 colorstatic Color
Color. valueOf(java.lang.String hex, Color color)
Sets the specified color from a hex string with the format RRGGBBAA.Constructors in com.badlogic.gdx.graphics with parameters of type Color Constructor Description Color(Color color)
Constructs a new color using the given color -
Uses of Color in com.badlogic.gdx.graphics.g2d
Methods in com.badlogic.gdx.graphics.g2d that return Color Modifier and Type Method Description Color
Batch. getColor()
Color
BitmapFont. getColor()
Returns the color of text drawn with this font.Color
BitmapFontCache. getColor()
Returns the color used for subsequently added text.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()
Color
PolygonSprite. getPackedColor()
Returns the actual color used in the vertices of this sprite.Color
PixmapPacker. getTransparentColor()
Methods in com.badlogic.gdx.graphics.g2d with parameters of type Color Modifier and Type Method 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)
A convenience method for setting the font color.void
BitmapFontCache. setColor(Color color)
A convenience method for setting the cache color.void
NinePatch. setColor(Color color)
Copy given color.void
PolygonSprite. setColor(Color tint)
void
PolygonSpriteBatch. setColor(Color tint)
void
RepeatablePolygonSprite. setColor(Color color)
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
GlyphLayout. setText(BitmapFont font, java.lang.CharSequence str, int start, int end, Color color, float targetWidth, int halign, boolean wrap, java.lang.String truncate)
void
GlyphLayout. setText(BitmapFont font, java.lang.CharSequence str, Color color, float targetWidth, int halign, boolean wrap)
CallssetText
with the whole string and no truncation.void
PixmapPacker. setTransparentColor(Color color)
Sets the defaultcolor
of the wholePixmapPacker.Page
when a new one created.void
BitmapFontCache. tint(Color tint)
Tints all text currently in the cache.Constructors in com.badlogic.gdx.graphics.g2d with parameters of type Color Constructor Description GlyphLayout(BitmapFont font, java.lang.CharSequence str, int start, int end, Color color, float targetWidth, int halign, boolean wrap, java.lang.String truncate)
GlyphLayout(BitmapFont font, java.lang.CharSequence str, Color color, float targetWidth, int halign, boolean wrap)
NinePatch(NinePatch ninePatch, Color color)
NinePatch(TextureRegion region, Color color)
Construct a degenerate "nine" patch with only a center component.NinePatch(Texture texture, Color color)
Construct a degenerate "nine" patch with only a center component. -
Uses of Color in com.badlogic.gdx.graphics.g3d.attributes
Fields in com.badlogic.gdx.graphics.g3d.attributes declared as Color Modifier and Type Field Description Color
ColorAttribute. color
Methods in com.badlogic.gdx.graphics.g3d.attributes with parameters of type Color Modifier and Type Method Description static ColorAttribute
ColorAttribute. createAmbient(Color color)
static ColorAttribute
ColorAttribute. createAmbientLight(Color color)
static ColorAttribute
ColorAttribute. createDiffuse(Color color)
static ColorAttribute
ColorAttribute. createEmissive(Color color)
static ColorAttribute
ColorAttribute. createFog(Color color)
static ColorAttribute
ColorAttribute. createReflection(Color color)
static ColorAttribute
ColorAttribute. createSpecular(Color color)
Constructors in com.badlogic.gdx.graphics.g3d.attributes with parameters of type Color Constructor Description ColorAttribute(long type, Color color)
-
Uses of Color in com.badlogic.gdx.graphics.g3d.decals
Fields in com.badlogic.gdx.graphics.g3d.decals declared as Color Modifier and Type Field Description protected Color
Decal. color
Methods in com.badlogic.gdx.graphics.g3d.decals that return Color Modifier and Type Method Description Color
Decal. getColor()
Returns the color of this decal.Methods in com.badlogic.gdx.graphics.g3d.decals with parameters of type Color Modifier and Type Method Description void
Decal. setColor(Color tint)
Sets the color used to tint this decal. -
Uses of Color in com.badlogic.gdx.graphics.g3d.environment
Fields in com.badlogic.gdx.graphics.g3d.environment declared as Color Modifier and Type Field Description Color
BaseLight. color
Methods in com.badlogic.gdx.graphics.g3d.environment that return Color Modifier and Type Method Description Color
AmbientCubemap. getColor(Color out, int side)
Methods in com.badlogic.gdx.graphics.g3d.environment with parameters of type Color Modifier and Type Method 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)
DirectionalLight
DirectionalLight. set(Color color, float dirX, float dirY, float dirZ)
DirectionalLight
DirectionalLight. set(Color color, Vector3 direction)
PointLight
PointLight. set(Color color, float x, float y, float z, float intensity)
PointLight
PointLight. set(Color color, Vector3 position, float intensity)
SphericalHarmonics
SphericalHarmonics. set(Color color)
SpotLight
SpotLight. set(Color color, float posX, float posY, float posZ, float dirX, float dirY, float dirZ, float intensity, float cutoffAngle, float exponent)
SpotLight
SpotLight. set(Color color, Vector3 position, Vector3 direction, float intensity, float cutoffAngle, float exponent)
T
BaseLight. setColor(Color color)
-
Uses of Color in com.badlogic.gdx.graphics.g3d.loader
Methods in com.badlogic.gdx.graphics.g3d.loader that return Color Modifier and Type Method Description protected Color
G3dModelLoader. parseColor(JsonValue colorArray)
-
Uses of Color in com.badlogic.gdx.graphics.g3d.model.data
Fields in com.badlogic.gdx.graphics.g3d.model.data declared as Color Modifier and Type Field Description Color
ModelMaterial. ambient
Color
ModelMaterial. diffuse
Color
ModelMaterial. emissive
Color
ModelMaterial. reflection
Color
ModelMaterial. specular
-
Uses of Color in com.badlogic.gdx.graphics.g3d.shaders
Methods in com.badlogic.gdx.graphics.g3d.shaders with parameters of type Color Modifier and Type Method Description boolean
BaseShader. set(int uniform, Color value)
-
Uses of Color in com.badlogic.gdx.graphics.g3d.utils
Fields in com.badlogic.gdx.graphics.g3d.utils declared as Color Modifier and Type Field Description Color
MeshPartBuilder.VertexInfo. color
Methods in com.badlogic.gdx.graphics.g3d.utils with parameters of type Color Modifier and Type Method 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 to tint the vertex color, defaults to white.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. -
Uses of Color in com.badlogic.gdx.graphics.g3d.utils.shapebuilders
Fields in com.badlogic.gdx.graphics.g3d.utils.shapebuilders declared as Color Modifier and Type Field Description protected static Color
BaseShapeBuilder. tmpColor0
protected static Color
BaseShapeBuilder. tmpColor1
protected static Color
BaseShapeBuilder. tmpColor2
protected static Color
BaseShapeBuilder. tmpColor3
protected static Color
BaseShapeBuilder. tmpColor4
Methods in com.badlogic.gdx.graphics.g3d.utils.shapebuilders with parameters of type Color Modifier and Type Method Description static void
FrustumShapeBuilder. build(MeshPartBuilder builder, Camera camera, Color frustumColor, Color coneColor, Color upColor, Color targetColor, Color crossColor)
Build Camera with custom colorsstatic void
FrustumShapeBuilder. build(MeshPartBuilder builder, Frustum frustum, Color frustumColor, Color crossColor)
Build Frustum with custom colorsstatic void
RenderableShapeBuilder. buildNormals(MeshPartBuilder builder, Renderable renderable, float vectorSize, Color normalColor, Color tangentColor, Color binormalColor)
Builds normal, tangent and binormal of a Renderable.static void
RenderableShapeBuilder. buildNormals(MeshPartBuilder builder, RenderableProvider renderableProvider, float vectorSize, Color normalColor, Color tangentColor, Color binormalColor)
Builds normal, tangent and binormal of a RenderableProvider. -
Uses of Color in com.badlogic.gdx.graphics.glutils
Methods in com.badlogic.gdx.graphics.glutils that return Color Modifier and Type Method Description Color
ShapeRenderer. getColor()
Methods in com.badlogic.gdx.graphics.glutils with parameters of type Color Modifier and Type Method Description void
ImmediateModeRenderer. color(Color color)
void
ImmediateModeRenderer20. color(Color color)
void
ShapeRenderer. line(float x, float y, float z, float x2, float y2, float z2, Color c1, Color c2)
Draws a line usingShapeRenderer.ShapeType.Line
orShapeRenderer.ShapeType.Filled
.void
ShapeRenderer. line(float x, float y, float x2, float y2, Color c1, Color c2)
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 usingShapeRenderer.ShapeType.Line
orShapeRenderer.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 usingShapeRenderer.ShapeType.Line
orShapeRenderer.ShapeType.Filled
.void
ShapeRenderer. rectLine(float x1, float y1, float x2, float y2, float width, Color c1, Color c2)
Draws a line using a rotated rectangle, where with one edge is centered at x1, y1 and the opposite edge centered at x2, y2.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 usingShapeRenderer.ShapeType.Line
orShapeRenderer.ShapeType.Filled
. -
Uses of Color in com.badlogic.gdx.maps
Methods in com.badlogic.gdx.maps that return Color Modifier and Type Method Description Color
MapObject. getColor()
Methods in com.badlogic.gdx.maps with parameters of type Color Modifier and Type Method Description void
MapObject. setColor(Color color)
-
Uses of Color in com.badlogic.gdx.scenes.scene2d
Methods in com.badlogic.gdx.scenes.scene2d that return Color Modifier and Type Method 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.Methods in com.badlogic.gdx.scenes.scene2d with parameters of type Color Modifier and Type Method Description void
Actor. setColor(Color color)
-
Uses of Color in com.badlogic.gdx.scenes.scene2d.actions
Methods in com.badlogic.gdx.scenes.scene2d.actions that return Color Modifier and Type Method Description Color
AlphaAction. getColor()
Color
ColorAction. getColor()
Color
ColorAction. getEndColor()
Methods in com.badlogic.gdx.scenes.scene2d.actions with parameters of type Color Modifier and Type Method 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. -
Uses of Color in com.badlogic.gdx.scenes.scene2d.ui
Fields in com.badlogic.gdx.scenes.scene2d.ui declared as Color Modifier and Type Field Description Color
TextButton.TextButtonStyle. checkedDownFontColor
Color
TextButton.TextButtonStyle. checkedFocusedFontColor
Color
TextButton.TextButtonStyle. checkedFontColor
Color
TextButton.TextButtonStyle. checkedOverFontColor
Color
Skin.TintedDrawable. color
static Color
Table. debugActorColor
static Color
Table. debugCellColor
static Color
Table. debugTableColor
Color
SelectBox.SelectBoxStyle. disabledFontColor
Color
TextButton.TextButtonStyle. disabledFontColor
Color
TextField.TextFieldStyle. disabledFontColor
Color
TextButton.TextButtonStyle. downFontColor
Color
TextButton.TextButtonStyle. focusedFontColor
Color
TextField.TextFieldStyle. focusedFontColor
Color
Label.LabelStyle. fontColor
Color
SelectBox.SelectBoxStyle. fontColor
Color
TextButton.TextButtonStyle. fontColor
Color
TextField.TextFieldStyle. fontColor
Color
List.ListStyle. fontColorSelected
Color
List.ListStyle. fontColorUnselected
Color
TextField.TextFieldStyle. messageFontColor
Color
SelectBox.SelectBoxStyle. overFontColor
Color
TextButton.TextButtonStyle. overFontColor
Color
Window.WindowStyle. titleFontColor
Methods in com.badlogic.gdx.scenes.scene2d.ui that return Color Modifier and Type Method Description Color
Skin. getColor(java.lang.String name)
protected Color
ImageTextButton. getFontColor()
Returns the appropriate label font color from the style based on the current button state.protected Color
SelectBox. getFontColor()
Returns the appropriate label font color from the style based on the current button state.protected Color
TextButton. getFontColor()
Returns the appropriate label font color from the style based on the current button state.Methods in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Color Modifier and Type Method Description Cell<Label>
Table. add(java.lang.CharSequence 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 viaSkin.getDrawable(String)
.Drawable
Skin. newDrawable(java.lang.String name, Color tint)
Returns a tinted copy of a drawable found in the skin viaSkin.getDrawable(String)
.Constructors in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Color Constructor 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 aLabel.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)
-
Uses of Color in com.badlogic.gdx.scenes.scene2d.utils
Methods in com.badlogic.gdx.scenes.scene2d.utils that return Color Modifier and Type Method Description Color
TiledDrawable. getColor()
Methods in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Color Modifier and Type Method Description NinePatchDrawable
NinePatchDrawable. tint(Color tint)
Creates a new drawable that renders the same as this drawable tinted the specified color.SpriteDrawable
SpriteDrawable. tint(Color tint)
Creates a new drawable that renders the same as this drawable tinted the specified color.Drawable
TextureRegionDrawable. tint(Color tint)
Creates a new drawable that renders the same as this drawable tinted the specified color.TiledDrawable
TiledDrawable. tint(Color tint)
-
Uses of Color in com.badlogic.gdx.utils
Methods in com.badlogic.gdx.utils with parameters of type Color Modifier and Type Method Description static void
ScreenUtils. clear(Color color)
Clears the color buffers with the specified Color.static void
ScreenUtils. clear(Color color, boolean clearDepth)
Clears the color buffers and optionally the depth buffer.
-