Package com.badlogic.gdx.graphics.g2d
Class ParticleEmitter.GradientColorValue
- java.lang.Object
-
- com.badlogic.gdx.graphics.g2d.ParticleEmitter.ParticleValue
-
- com.badlogic.gdx.graphics.g2d.ParticleEmitter.GradientColorValue
-
- Enclosing class:
- ParticleEmitter
public static class ParticleEmitter.GradientColorValue extends ParticleEmitter.ParticleValue
-
-
Constructor Summary
Constructors Constructor Description GradientColorValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]getColor(float percent)float[]getColors()float[]getTimeline()voidload(ParticleEmitter.GradientColorValue value)voidload(java.io.BufferedReader reader)voidsave(java.io.Writer output)voidsetColors(float[] colors)voidsetTimeline(float[] timeline)-
Methods inherited from class com.badlogic.gdx.graphics.g2d.ParticleEmitter.ParticleValue
isActive, isAlwaysActive, load, setActive, setAlwaysActive
-
-
-
-
Method Detail
-
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
public void save(java.io.Writer output) throws java.io.IOException- Overrides:
savein classParticleEmitter.ParticleValue- Throws:
java.io.IOException
-
load
public void load(java.io.BufferedReader reader) throws java.io.IOException- Overrides:
loadin classParticleEmitter.ParticleValue- Throws:
java.io.IOException
-
load
public void load(ParticleEmitter.GradientColorValue value)
-
-