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)voidgetColor(float percent, float[] out, int index)float[]getColors()float[]getTimeline()voidload(GradientColorValue value)voidread(Json json, JsonValue jsonData)voidsetColors(float[] colors)voidsetTimeline(float[] timeline)voidwrite(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:
writein interfaceJson.Serializable- Overrides:
writein classParticleValue
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
readin interfaceJson.Serializable- Overrides:
readin classParticleValue
-
load
public void load(GradientColorValue value)
-
-