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, setTime
protected void begin()
begin
in class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
protected void update(float percent)
update
in class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
public void reset()
reset
in interface com.badlogic.gdx.utils.Pool.Poolable
reset
in class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
public 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.