Package com.badlogic.gdx
Class ParticleEmitter.GradientColorValue
java.lang.Object
com.badlogic.gdx.ParticleEmitter.ParticleValue
com.badlogic.gdx.ParticleEmitter.GradientColorValue
- Enclosing class:
ParticleEmitter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat[]getColor(float percent) float[]float[]voidvoidload(BufferedReader reader) voidvoidsetColors(float[] colors) voidsetTimeline(float[] timeline) Methods inherited from class com.badlogic.gdx.ParticleEmitter.ParticleValue
isActive, isAlwaysActive, load, setActive, setAlwaysActive
-
Constructor Details
-
GradientColorValue
public GradientColorValue()
-
-
Method Details
-
getTimeline
public float[] getTimeline() -
setTimeline
public void setTimeline(float[] timeline) -
getColors
public float[] getColors()- Returns:
- the r, g and b values for every timeline position
-
setColors
public void setColors(float[] colors) - Parameters:
colors- the r, g and b values for every timeline position
-
getColor
public float[] getColor(float percent) -
save
- Overrides:
savein classParticleEmitter.ParticleValue- Throws:
IOException
-
load
- Overrides:
loadin classParticleEmitter.ParticleValue- Throws:
IOException
-
load
-