Class ColorInfluencer.Random
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.Random
-
- All Implemented Interfaces:
ResourceData.Configurable,Disposable,Json.Serializable
- Enclosing class:
- ColorInfluencer
public static class ColorInfluencer.Random extends ColorInfluencer
It's anInfluencerwhich assigns a random color when a particle is activated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer
ColorInfluencer.Random, ColorInfluencer.Single
-
-
Constructor Summary
Constructors Constructor Description Random()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateParticles(int startIndex, int count)Called to initialize new emitted particles.voidallocateChannels()Called during initialization to allocate additional particles channelsColorInfluencer.Randomcopy()
-
-
-
Method Detail
-
allocateChannels
public void allocateChannels()
Description copied from class:ParticleControllerComponentCalled during initialization to allocate additional particles channels- Overrides:
allocateChannelsin classColorInfluencer
-
activateParticles
public void activateParticles(int startIndex, int count)Description copied from class:ParticleControllerComponentCalled to initialize new emitted particles.- Overrides:
activateParticlesin classParticleControllerComponent
-
copy
public ColorInfluencer.Random copy()
- Specified by:
copyin classParticleControllerComponent
-
-