Particle for confetti effect.
A color to fade in to when this particle dies.
Function that takes current age and return character to use for that frame.
Set of colors to randomly color the particle at each frame.
Maximum age of the particle, i.e. how many frames it will be visible.
Z-index to use to draw this particle.
Tests whether or not this particle is alive. Dead particles will be discarded by the particle sprite and won't be rendered anymore. This method is used to check every particle on each frame update.
Scene object context of the particle sprite.
- Definition Classes