ColorOverLifeModule class Particles

Sets each particle's color from a ColorDistribution sampled over its normalized age (color over life).

Inheritance

Constructors

ColorOverLifeModule(ColorDistribution color)
Creates a color-over-life force driven by color.

Properties

color ColorDistribution
The color sampled over normalized age.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
spawn(ParticleStorage storage, int index) → void
Initializes the freshly spawned particle at index.
inherited
toString() String
A string representation of this object.
inherited
update(ParticleStorage storage, double dt) → void
Advances every live particle by dt seconds.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited