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

Constructors

ParticleFade({double startsAt = 0.0})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startsAt → double
Point in the particle's life where the fade begins, in [0, 1).
final

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