ParticleColorGradient class final
Drives a particle's colour from a gradient.
- Inheritance
-
- Object
- ParticleAffector
- ParticleColorGradient
Constructors
- ParticleColorGradient(ParticleGradient gradient)
-
Colours each particle by
gradientover its life.const
Properties
- gradient → ParticleGradient
-
The colour in linear light, alpha included, against life from nought
to one. Replaces the colour the particle was born with.
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
-
apply(
ParticleStep step) → void -
Advances ParticleStep.particle by ParticleStep.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