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(BufferedReader reader) |
void |
load(ParticleEmitter.GradientColorValue value) |
void |
save(Writer output) |
void |
setColors(float[] colors) |
void |
setTimeline(float[] timeline) |
isActive, isAlwaysActive, load, setActive, setAlwaysActive
public 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(Writer output) throws IOException
save
in class ParticleEmitter.ParticleValue
IOException
public void load(BufferedReader reader) throws IOException
load
in class ParticleEmitter.ParticleValue
IOException
public void load(ParticleEmitter.GradientColorValue value)
Copyright © 2015. All rights reserved.