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, 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(Writer output) throws IOException
save in class ParticleEmitter.ParticleValueIOExceptionpublic void load(BufferedReader reader) throws IOException
load in class ParticleEmitter.ParticleValueIOExceptionpublic void load(ParticleEmitter.GradientColorValue value)
Copyright © 2021. All rights reserved.