public static class ParticleEmitter.GradientColorValue extends ParticleEmitter.ParticleValue
| Constructor and Description |
|---|
GradientColorValue() |
| Modifier and Type | Method and Description |
|---|---|
float[] |
getColor(float percent) |
float[] |
getColors() |
float[] |
getTimeline() |
void |
load(java.io.BufferedReader reader) |
void |
load(ParticleEmitter.GradientColorValue value) |
void |
save(java.io.Writer output) |
void |
setColors(float[] colors) |
void |
setTimeline(float[] timeline) |
isActive, isAlwaysActive, load, setActive, setAlwaysActivepublic float[] getTimeline()
public void setTimeline(float[] timeline)
public float[] getColors()
public void setColors(float[] colors)
colors - the r, g and b values for every timeline positionpublic float[] getColor(float percent)
public void save(java.io.Writer output)
throws java.io.IOException
save in class ParticleEmitter.ParticleValuejava.io.IOExceptionpublic void load(java.io.BufferedReader reader)
throws java.io.IOException
load in class ParticleEmitter.ParticleValuejava.io.IOExceptionpublic void load(ParticleEmitter.GradientColorValue value)