updateColor method

dynamic updateColor(
  1. double progress
)

Update the color of the particle.

The updateColor will adjust the color of the particle according to the current progress of the effect. If progress is outside the range 0,1 it will be clamped to the nearest value.

Implementation

updateColor(double progress) {
  _color = configuration.color.computeColor(progress.clamp(0, 1));
}