ParticleFade class final
Fades a particle out towards the end of its life.
Separate from ParticleColorOverLife because most effects want the fade and not the colour change, and an effect that had to spell out both ends of a colour ramp just to disappear would spell it out wrong.
- Inheritance
-
- Object
- ParticleAffector
- ParticleFade
Constructors
- ParticleFade({double startsAt = 0.0})
-
const
Properties
Methods
-
apply(
Particle particle, double dt) → void -
Advances one particle by
dt. Called once per particle per step, after its age has been updated and before it is moved.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited