Class GradientColorValue
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
-
- com.badlogic.gdx.graphics.g3d.particles.values.GradientColorValue
-
- All Implemented Interfaces:
Json.Serializable
public class GradientColorValue extends ParticleValue
Defines a variation of red, green and blue on a given time line.
-
-
Field Summary
Fields Modifier and Type Field Description float[]
timeline
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
active
-
-
Constructor Summary
Constructors Constructor Description GradientColorValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
getColor(float percent)
void
getColor(float percent, float[] out, int index)
float[]
getColors()
float[]
getTimeline()
void
load(GradientColorValue value)
void
read(Json json, JsonValue jsonData)
void
setColors(float[] colors)
void
setTimeline(float[] timeline)
void
write(Json json)
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue
isActive, load, setActive
-
-
-
-
Method Detail
-
getTimeline
public float[] getTimeline()
-
setTimeline
public void setTimeline(float[] timeline)
-
getColors
public float[] getColors()
-
setColors
public void setColors(float[] colors)
-
getColor
public float[] getColor(float percent)
-
getColor
public void getColor(float percent, float[] out, int index)
-
write
public void write(Json json)
- Specified by:
write
in interfaceJson.Serializable
- Overrides:
write
in classParticleValue
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
read
in interfaceJson.Serializable
- Overrides:
read
in classParticleValue
-
load
public void load(GradientColorValue value)
-
-