The animatable color interface, it provides all the necessary properties to create a color animation

Particles Color

| key | option type | example | notes | | ------------- | ----------- | ------- | --------------------------------------------------------- | ----- | | value | object | | This value property is the same described {@link IColor | here} | | animation.h | object | | See animation documentation below | | animation.s | object | | See animation documentation below | | animation.l | object | | See animation documentation below |

Particles Color Animation

key option type example notes
enable boolean true / false
offset.max number 60
offset.min number 20
speed number 40 Determines the rate (% or ° per second) at which a particle changes its
hue, saturation, or lightness. A speed of 0 will set the hsl of
particles to what was initially defined in value.
sync boolean true / false When sync is toggled true, particles generated will change color in
time with each other for their entire duration. However, when sync is
toggled false, particles generated begin changing color at the set speed from
their time of appearance, but independently of one another.
interface IAnimatableColor {
    animation: IColorAnimation | IHslAnimation;
    value: SingleOrMultiple<SingleOrMultiple<string> | IRangeValueColor | IRangeRgb | IRangeHsl | IRangeHsv>;
}

Hierarchy

Implemented by

Properties

Properties

The color animation property

Color value, can be a single or an array of IValueColor, IRgb, IHsl or string