APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.particles.values

public Class GradientColorValue

extends ParticleValue
Class Inheritance
Imports
com.badlogic.gdx.utils.Json, .JsonValue

Defines a variation of red, green and blue on a given time line.
Author
Inferno

Field Summary

Modifier and TypeField and Description
private float[]
private static float[]
public float[]
Inherited from com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue:
active

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public float[]
getColor(float percent)

public void
getColor(float percent, float[] out, int index)

public float[]
public float[]
public void
public void
public void
setColors(float[] colors)

public void
setTimeline(float[] timeline)

public void
Inherited from com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue:
isActiveloadsetActive

Field Detail

colorsback to summary
private float[] colors
tempback to summary
private static float[] temp
timelineback to summary
public float[] timeline

Constructor Detail

GradientColorValueback to summary
public GradientColorValue()

Method Detail

getColorback to summary
public float[] getColor(float percent)
getColorback to summary
public void getColor(float percent, float[] out, int index)
getColorsback to summary
public float[] getColors()
getTimelineback to summary
public float[] getTimeline()
loadback to summary
public void load(GradientColorValue value)
readback to summary
public void read(Json json, JsonValue jsonData)

Overrides com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue.read.

Implements com.badlogic.gdx.utils.Json.Serializable.read.

Annotations
@Override
setColorsback to summary
public void setColors(float[] colors)
setTimelineback to summary
public void setTimeline(float[] timeline)
writeback to summary
public void write(Json json)

Overrides com.badlogic.gdx.graphics.g3d.particles.values.ParticleValue.write.

Implements com.badlogic.gdx.utils.Json.Serializable.write.

Annotations
@Override