public class PackedColorAction
extends com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
| Constructor and Description |
|---|
PackedColorAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
begin() |
static PackedColorAction |
color(float color)
Sets the actor's color instantly.
|
static PackedColorAction |
color(float color,
float duration)
Transitions from the color at the time this action starts to the specified color.
|
static PackedColorAction |
color(float color,
float duration,
com.badlogic.gdx.math.Interpolation interpolation)
Transitions from the color at the time this action starts to the specified color.
|
com.badlogic.gdx.graphics.Color |
getColor() |
float |
getEndColor() |
void |
reset() |
void |
setColor(com.badlogic.gdx.graphics.Color color)
Sets the color to modify.
|
void |
setEndColor(float color)
Sets the color to transition to.
|
protected void |
update(float percent) |
act, end, finish, getDuration, getInterpolation, getTime, isComplete, isReverse, restart, setDuration, setInterpolation, setReverse, setTimeprotected void begin()
begin in class com.badlogic.gdx.scenes.scene2d.actions.TemporalActionprotected void update(float percent)
update in class com.badlogic.gdx.scenes.scene2d.actions.TemporalActionpublic void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolablereset in class com.badlogic.gdx.scenes.scene2d.actions.TemporalActionpublic com.badlogic.gdx.graphics.Color getColor()
public void setColor(com.badlogic.gdx.graphics.Color color)
actor's color will be
used.public float getEndColor()
public void setEndColor(float color)
public static PackedColorAction color(float color)
public static PackedColorAction color(float color, float duration)
public static PackedColorAction color(float color, float duration, com.badlogic.gdx.math.Interpolation interpolation)
Copyright © Eben Howard 2012–2022. All rights reserved.