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 ColorColor. BLACKstatic ColorColor. BLUEstatic ColorColor. BROWNstatic ColorColor. CHARTREUSEstatic ColorColor. CLEARstatic ColorColor. CORALstatic ColorColor. CYANstatic ColorColor. DARK_GRAYstatic ColorColor. FIREBRICKstatic ColorColor. FORESTstatic ColorColor. GOLDstatic ColorColor. GOLDENRODstatic ColorColor. GRAYstatic ColorColor. GREENstatic ColorColor. LIGHT_GRAYstatic ColorColor. LIMEstatic ColorColor. MAGENTAstatic ColorColor. MAROONstatic ColorColor. NAVYstatic ColorColor. OLIVEstatic ColorColor. ORANGEstatic ColorColor. PINKstatic ColorColor. PURPLEstatic ColorColor. REDstatic ColorColor. ROYALstatic ColorColor. SALMONstatic ColorColor. SCARLETstatic ColorColor. SKYstatic ColorColor. SLATEstatic ColorColor. TANstatic ColorColor. TEALstatic ColorColor. VIOLETstatic ColorColor. WHITEstatic ColorColor. YELLOWMethods in com.badlogic.gdx.graphics that return Color Modifier and Type Method Description ColorColor. add(float r, float g, float b, float a)Adds the given color component values to this Color's values.ColorColor. add(Color color)Adds the given color to this color.ColorColor. clamp()Clamps this Color's components to a valid range [0 - 1]ColorColor. cpy()ColorColor. fromHsv(float[] hsv)Sets RGB components using the specified Hue-Saturation-Value.ColorColor. fromHsv(float h, float s, float v)Sets the RGB Color components using the specified Hue-Saturation-Value.static ColorColors. get(java.lang.String name)Convenience method to lookup a color byname.ColorColor. 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].ColorColor. lerp(Color target, float t)Linearly interpolates between this color and the target color by t which is in the range [0,1].ColorColor. mul(float value)Multiplies all components of this Color with the given value.ColorColor. mul(float r, float g, float b, float a)Multiplies this Color's color components by the given ones.ColorColor. mul(Color color)Multiplies the this color and the given colorColorColor. premultiplyAlpha()Multiplies the RGB values by the alpha.static ColorColors. put(java.lang.String name, Color color)Convenience method to add acolorwith itsname.ColorColor. set(float r, float g, float b, float a)Sets this Color's component values.ColorColor. set(int rgba)Sets this color's component values through an integer representation.ColorColor. set(Color color)Sets this color to the given color.ColorColor. sub(float r, float g, float b, float a)Subtracts the given values from this Color's component values.ColorColor. sub(Color color)Subtracts the given color from this colorstatic ColorColor. valueOf(java.lang.String hex)Returns a new color from a hex string with the format RRGGBBAA.static ColorColor. 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 voidColor. abgr8888ToColor(Color color, float value)Sets the Color components using the specified float value in the format ABGR8888.static voidColor. abgr8888ToColor(Color color, int value)Sets the Color components using the specified integer value in the format ABGR8888.ColorColor. add(Color color)Adds the given color to this color.static intColor. argb8888(Color color)static voidColor. argb8888ToColor(Color color, int value)Sets the Color components using the specified integer value in the format ARGB8888.ColorColor. lerp(Color target, float t)Linearly interpolates between this color and the target color by t which is in the range [0,1].ColorColor. mul(Color color)Multiplies the this color and the given colorstatic ColorColors. put(java.lang.String name, Color color)Convenience method to add acolorwith itsname.static intColor. rgb565(Color color)static voidColor. rgb565ToColor(Color color, int value)Sets the Color components using the specified integer value in the format RGB565.static intColor. rgb888(Color color)static voidColor. rgb888ToColor(Color color, int value)Sets the Color components using the specified integer value in the format RGB888.static intColor. rgba4444(Color color)static voidColor. rgba4444ToColor(Color color, int value)Sets the Color components using the specified integer value in the format RGBA4444.static intColor. rgba8888(Color color)static voidColor. rgba8888ToColor(Color color, int value)Sets the Color components using the specified integer value in the format RGBA8888.ColorColor. set(Color color)Sets this color to the given color.voidPixmap. setColor(Color color)Sets the color for the following drawing operations.ColorColor. sub(Color color)Subtracts the given color from this colorstatic ColorColor. 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 ColorBatch. getColor()ColorBitmapFont. getColor()Returns the color of text drawn with this font.ColorBitmapFontCache. getColor()Returns the color used for subsequently added text.ColorNinePatch. getColor()ColorPolygonSprite. getColor()Returns the color of this sprite.ColorPolygonSpriteBatch. getColor()ColorSprite. getColor()Returns the color of this sprite.ColorSpriteBatch. getColor()ColorSpriteCache. getColor()ColorPolygonSprite. getPackedColor()Returns the actual color used in the vertices of this sprite.ColorPixmapPacker. getTransparentColor()Methods in com.badlogic.gdx.graphics.g2d with parameters of type Color Modifier and Type Method Description voidBatch. setColor(Color tint)Sets the color used to tint images when they are added to the Batch.voidBitmapFont. setColor(Color color)A convenience method for setting the font color.voidBitmapFontCache. setColor(Color color)A convenience method for setting the cache color.voidNinePatch. setColor(Color color)Copy given color.voidPolygonSprite. setColor(Color tint)voidPolygonSpriteBatch. setColor(Color tint)voidRepeatablePolygonSprite. setColor(Color color)voidSprite. setColor(Color tint)Sets the color used to tint this sprite.voidSpriteBatch. setColor(Color tint)voidSpriteCache. setColor(Color tint)Sets the color used to tint images when they are added to the SpriteCache.voidBitmapFontCache. setColors(Color tint)Sets the color of all text currently in the cache.voidBitmapFontCache. setColors(Color tint, int start, int end)Sets the color of the specified characters.voidGlyphLayout. setText(BitmapFont font, java.lang.CharSequence str, int start, int end, Color color, float targetWidth, int halign, boolean wrap, java.lang.String truncate)voidGlyphLayout. setText(BitmapFont font, java.lang.CharSequence str, Color color, float targetWidth, int halign, boolean wrap)CallssetTextwith the whole string and no truncation.voidPixmapPacker. setTransparentColor(Color color)Sets the defaultcolorof the wholePixmapPacker.Pagewhen a new one created.voidBitmapFontCache. 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 ColorColorAttribute. colorMethods in com.badlogic.gdx.graphics.g3d.attributes with parameters of type Color Modifier and Type Method Description static ColorAttributeColorAttribute. createAmbient(Color color)static ColorAttributeColorAttribute. createAmbientLight(Color color)static ColorAttributeColorAttribute. createDiffuse(Color color)static ColorAttributeColorAttribute. createEmissive(Color color)static ColorAttributeColorAttribute. createFog(Color color)static ColorAttributeColorAttribute. createReflection(Color color)static ColorAttributeColorAttribute. 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 ColorDecal. colorMethods in com.badlogic.gdx.graphics.g3d.decals that return Color Modifier and Type Method Description ColorDecal. 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 voidDecal. 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 ColorBaseLight. colorMethods in com.badlogic.gdx.graphics.g3d.environment that return Color Modifier and Type Method Description ColorAmbientCubemap. getColor(Color out, int side)Methods in com.badlogic.gdx.graphics.g3d.environment with parameters of type Color Modifier and Type Method Description AmbientCubemapAmbientCubemap. add(Color color)AmbientCubemapAmbientCubemap. add(Color color, float x, float y, float z)AmbientCubemapAmbientCubemap. add(Color color, Vector3 direction)AmbientCubemapAmbientCubemap. add(Color color, Vector3 point, Vector3 target)AmbientCubemapAmbientCubemap. add(Color color, Vector3 point, Vector3 target, float intensity)ColorAmbientCubemap. getColor(Color out, int side)AmbientCubemapAmbientCubemap. set(Color color)DirectionalLightDirectionalLight. set(Color color, float dirX, float dirY, float dirZ)DirectionalLightDirectionalLight. set(Color color, Vector3 direction)PointLightPointLight. set(Color color, float x, float y, float z, float intensity)PointLightPointLight. set(Color color, Vector3 position, float intensity)SphericalHarmonicsSphericalHarmonics. set(Color color)SpotLightSpotLight. set(Color color, float posX, float posY, float posZ, float dirX, float dirY, float dirZ, float intensity, float cutoffAngle, float exponent)SpotLightSpotLight. set(Color color, Vector3 position, Vector3 direction, float intensity, float cutoffAngle, float exponent)TBaseLight. 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 ColorG3dModelLoader. 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 ColorModelMaterial. ambientColorModelMaterial. diffuseColorModelMaterial. emissiveColorModelMaterial. reflectionColorModelMaterial. 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 booleanBaseShader. 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 ColorMeshPartBuilder.VertexInfo. colorMethods in com.badlogic.gdx.graphics.g3d.utils with parameters of type Color Modifier and Type Method Description voidMeshBuilder. line(Vector3 p1, Color c1, Vector3 p2, Color c2)voidMeshPartBuilder. line(Vector3 p1, Color c1, Vector3 p2, Color c2)Add a line.MeshPartBuilder.VertexInfoMeshPartBuilder.VertexInfo. set(Vector3 pos, Vector3 nor, Color col, Vector2 uv)MeshPartBuilder.VertexInfoMeshPartBuilder.VertexInfo. setCol(Color col)voidMeshBuilder. setColor(Color color)voidMeshPartBuilder. setColor(Color color)Set the color used to tint the vertex color, defaults to white.voidMeshBuilder. triangle(Vector3 p1, Color c1, Vector3 p2, Color c2, Vector3 p3, Color c3)voidMeshPartBuilder. triangle(Vector3 p1, Color c1, Vector3 p2, Color c2, Vector3 p3, Color c3)Add a triangle.shortMeshBuilder. vertex(Vector3 pos, Vector3 nor, Color col, Vector2 uv)shortMeshPartBuilder. 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 ColorBaseShapeBuilder. tmpColor0protected static ColorBaseShapeBuilder. tmpColor1protected static ColorBaseShapeBuilder. tmpColor2protected static ColorBaseShapeBuilder. tmpColor3protected static ColorBaseShapeBuilder. tmpColor4Methods in com.badlogic.gdx.graphics.g3d.utils.shapebuilders with parameters of type Color Modifier and Type Method Description static voidFrustumShapeBuilder. build(MeshPartBuilder builder, Camera camera, Color frustumColor, Color coneColor, Color upColor, Color targetColor, Color crossColor)Build Camera with custom colorsstatic voidFrustumShapeBuilder. build(MeshPartBuilder builder, Frustum frustum, Color frustumColor, Color crossColor)Build Frustum with custom colorsstatic voidRenderableShapeBuilder. buildNormals(MeshPartBuilder builder, Renderable renderable, float vectorSize, Color normalColor, Color tangentColor, Color binormalColor)Builds normal, tangent and binormal of a Renderable.static voidRenderableShapeBuilder. 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 ColorShapeRenderer. getColor()Methods in com.badlogic.gdx.graphics.glutils with parameters of type Color Modifier and Type Method Description voidImmediateModeRenderer. color(Color color)voidImmediateModeRenderer20. color(Color color)voidShapeRenderer. line(float x, float y, float z, float x2, float y2, float z2, Color c1, Color c2)Draws a line usingShapeRenderer.ShapeType.LineorShapeRenderer.ShapeType.Filled.voidShapeRenderer. line(float x, float y, float x2, float y2, Color c1, Color c2)voidShapeRenderer. 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.LineorShapeRenderer.ShapeType.Filled.voidShapeRenderer. 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.LineorShapeRenderer.ShapeType.Filled.voidShapeRenderer. 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.voidShapeRenderer. setColor(Color color)Sets the color to be used by the next shapes drawn.voidShaderProgram. setUniformf(int location, Color values)voidShaderProgram. setUniformf(java.lang.String name, Color values)Sets the uniform with the given name.voidShapeRenderer. 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.LineorShapeRenderer.ShapeType.Filled. -
Uses of Color in com.badlogic.gdx.maps
Methods in com.badlogic.gdx.maps that return Color Modifier and Type Method Description ColorMapObject. getColor()Methods in com.badlogic.gdx.maps with parameters of type Color Modifier and Type Method Description voidMapObject. 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 ColorActor. getColor()Returns the color the actor will be tinted when drawn.ColorStage. 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 voidActor. 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 ColorAlphaAction. getColor()ColorColorAction. getColor()ColorColorAction. getEndColor()Methods in com.badlogic.gdx.scenes.scene2d.actions with parameters of type Color Modifier and Type Method Description static ColorActionActions. color(Color color)Sets the actor's color instantly.static ColorActionActions. color(Color color, float duration)Transitions from the color at the time this action starts to the specified color.static ColorActionActions. color(Color color, float duration, Interpolation interpolation)Transitions from the color at the time this action starts to the specified color.voidAlphaAction. setColor(Color color)Sets the color to modify.voidColorAction. setColor(Color color)Sets the color to modify.voidColorAction. 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 ColorTextButton.TextButtonStyle. checkedDownFontColorColorTextButton.TextButtonStyle. checkedFocusedFontColorColorTextButton.TextButtonStyle. checkedFontColorColorTextButton.TextButtonStyle. checkedOverFontColorColorSkin.TintedDrawable. colorstatic ColorTable. debugActorColorstatic ColorTable. debugCellColorstatic ColorTable. debugTableColorColorSelectBox.SelectBoxStyle. disabledFontColorColorTextButton.TextButtonStyle. disabledFontColorColorTextField.TextFieldStyle. disabledFontColorColorTextButton.TextButtonStyle. downFontColorColorTextButton.TextButtonStyle. focusedFontColorColorTextField.TextFieldStyle. focusedFontColorColorLabel.LabelStyle. fontColorColorSelectBox.SelectBoxStyle. fontColorColorTextButton.TextButtonStyle. fontColorColorTextField.TextFieldStyle. fontColorColorList.ListStyle. fontColorSelectedColorList.ListStyle. fontColorUnselectedColorTextField.TextFieldStyle. messageFontColorColorSelectBox.SelectBoxStyle. overFontColorColorTextButton.TextButtonStyle. overFontColorColorWindow.WindowStyle. titleFontColorMethods in com.badlogic.gdx.scenes.scene2d.ui that return Color Modifier and Type Method Description ColorSkin. getColor(java.lang.String name)protected ColorImageTextButton. getFontColor()Returns the appropriate label font color from the style based on the current button state.protected ColorSelectBox. getFontColor()Returns the appropriate label font color from the style based on the current button state.protected ColorTextButton. 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.DrawableSkin. newDrawable(Drawable drawable, Color tint)Returns a tinted copy of a drawable found in the skin viaSkin.getDrawable(String).DrawableSkin. 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.LabelStylethat 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 ColorTiledDrawable. getColor()Methods in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Color Modifier and Type Method Description NinePatchDrawableNinePatchDrawable. tint(Color tint)Creates a new drawable that renders the same as this drawable tinted the specified color.SpriteDrawableSpriteDrawable. tint(Color tint)Creates a new drawable that renders the same as this drawable tinted the specified color.DrawableTextureRegionDrawable. tint(Color tint)Creates a new drawable that renders the same as this drawable tinted the specified color.TiledDrawableTiledDrawable. 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 voidScreenUtils. clear(Color color)Clears the color buffers with the specified Color.static voidScreenUtils. clear(Color color, boolean clearDepth)Clears the color buffers and optionally the depth buffer.
-