Constructs a Color behaviour instance.
OptionalcolorA: string
the starting color
OptionalcolorB: string
the ending color
Optionallife: number
the life of the particle
Optionaleasing: EasingFunction
The behaviour's decaying trend
Determines if the behaviour will be applied or not
Gets the behaviour's life.
Ensures that life is infinity if an invalid value is supplied.
Gets the _same property which determines if the alpha are the same.
Sets the _same property which determines if the alpha are the same.
AbstractdestroyDestroy this behaviour.
Compares the age of the behaviour vs integration time and determines if the behaviour should be set to dead or not.
Optionalindex: numberAbstractfromReturns a new instance of the behaviour from the JSON object passed.
AbstractinitializeAbstractmutateChange the target's properties according to specific behaviour logic.
Optionalindex: numberNormalize a value by 1:100.
Reset this behaviour's parameters.
OptionalcolorA: stringOptionalcolorB: stringOptionallife: numberOptionaleasing: EasingFunctionStaticfromCreates a Color initializer from JSON.
The JSON to construct the instance from.
A behaviour which mutates the color of a particle over time.