|
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.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.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 |
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 |
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 tint)
|
void |
BitmapFontCache.setColor(Color tint)
|
void |
NinePatch.setColor(Color color)
|
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. |
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 |
---|
Fields in com.badlogic.gdx.graphics.g3d declared as Color | |
---|---|
Color |
Material.Ambient
|
Color |
Material.Diffuse
|
Color |
Material.Emissive
|
Color |
Material.Specular
|
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(java.lang.String name,
Color values)
Sets the uniform with the given name. |
Uses of Color in com.badlogic.gdx.scenes.scene2d |
---|
Fields in com.badlogic.gdx.scenes.scene2d declared as Color | |
---|---|
Color |
Actor.color
|
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 |
Skin.TintedNinePatch.color
|
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 |
Window.WindowStyle.titleFontColor
|
Methods in com.badlogic.gdx.scenes.scene2d.ui that return Color | |
---|---|
Color |
Label.getColor()
|
Color |
Skin.getColor(java.lang.String name)
|
Methods in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Color | |
---|---|
NinePatch |
Skin.newTintedPatch(java.lang.String patchName,
Color color)
|
NinePatch |
Skin.newTintedRegion(java.lang.String regionName,
Color color)
|
void |
Label.setColor(Color tint)
|
Constructors in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Color | |
---|---|
CheckBox.CheckBoxStyle(TextureRegion checkboxOff,
TextureRegion checkboxOn,
BitmapFont font,
Color fontColor)
|
|
Label.LabelStyle(BitmapFont font,
Color fontColor)
|
|
Label(java.lang.CharSequence text,
java.lang.String fontName,
Color color,
Skin skin)
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,
NinePatch selectedPatch)
|
|
SelectBox.SelectBoxStyle(BitmapFont font,
Color fontColor,
NinePatch background,
NinePatch listBackground,
NinePatch listSelection)
|
|
Skin.TintedNinePatch(NinePatch ninePatch,
Color color)
|
|
TextButton.TextButtonStyle(NinePatch down,
NinePatch up,
NinePatch checked,
float pressedOffsetX,
float pressedOffsetY,
float unpressedOffsetX,
float unpressedOffsetY,
BitmapFont font,
Color fontColor,
Color downFontColor,
Color checkedFontColor)
|
|
TextField.TextFieldStyle(BitmapFont font,
Color fontColor,
BitmapFont messageFont,
Color messageFontColor,
NinePatch cursor,
TextureRegion selection,
NinePatch background)
|
|
Window.WindowStyle(BitmapFont titleFont,
Color titleFontColor,
NinePatch backgroundPatch)
|
|
libgdx API | |||||||||
PREV NEXT | FRAMES NO FRAMES |