|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Color in com.badlogic.gdx.graphics |
---|
Fields in com.badlogic.gdx.graphics declared as Color | |
---|---|
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
|
static Color |
Color.WHITE
|
static Color |
Color.YELLOW
|
Methods in com.badlogic.gdx.graphics that return Color | |
---|---|
Color |
Color.add(Color color)
Adds the given color to this color. |
Color |
Color.cpy()
|
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.set(Color color)
Sets this color to the given color. |
Color |
Color.sub(Color color)
Subtracts the given color from this color |
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. |
Methods in com.badlogic.gdx.graphics with parameters of type Color | |
---|---|
Color |
Color.add(Color color)
Adds the given color to this color. |
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 |
Constructors in com.badlogic.gdx.graphics with parameters of type Color | |
---|---|
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 | |
---|---|
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()
|
Methods in com.badlogic.gdx.graphics.g2d with parameters of type Color | |
---|---|
void |
BitmapFont.setColor(Color color)
|
void |
BitmapFontCache.setColor(Color tint)
|
void |
NinePatch.setColor(Color 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. |
Constructors in com.badlogic.gdx.graphics.g2d with parameters of type Color | |
---|---|
NinePatch(NinePatch ninePatch,
Color color)
|
|
NinePatch(Texture texture,
Color color)
|
|
NinePatch(TextureRegion region,
Color color)
|
Uses of Color in com.badlogic.gdx.graphics.g3d.materials |
---|
Fields in com.badlogic.gdx.graphics.g3d.materials declared as Color | |
---|---|
Color |
ColorAttribute.color
|
Constructors in com.badlogic.gdx.graphics.g3d.materials with parameters of type Color | |
---|---|
ColorAttribute(Color color,
java.lang.String name)
Creates a MaterialAttribute that is a pure Color . |
Uses of Color in com.badlogic.gdx.graphics.glutils |
---|
Methods in com.badlogic.gdx.graphics.glutils with parameters of type Color | |
---|---|
void |
ShapeRenderer.filledRect(float x,
float y,
float width,
float height,
Color c1,
Color c2,
Color c3,
Color c4)
Draws a filled 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. |
Uses of Color in com.badlogic.gdx.scenes.scene2d |
---|
Methods in com.badlogic.gdx.scenes.scene2d that return Color | |
---|---|
Color |
Actor.getColor()
Returns the color the actor will be tinted when drawn. |
Methods in com.badlogic.gdx.scenes.scene2d with parameters of type Color | |
---|---|
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 | |
---|---|
Color |
AlphaAction.getColor()
|
Color |
ColorAction.getColor()
|
Color |
ColorAction.getEndColor()
|
Methods in com.badlogic.gdx.scenes.scene2d.actions with parameters of type Color | |
---|---|
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 | |
---|---|
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. |
Methods in com.badlogic.gdx.scenes.scene2d.ui that return Color | |
---|---|
Color |
Skin.getColor(java.lang.String name)
|
Methods in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Color | |
---|---|
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) . |
Constructors in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Color | |
---|---|
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)
|
|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |