speed property

double speed

Speed of dynamic palette for this scene.

Range: 0 - 1

Throws UnitIntervalException if speed is set to something outside of the range 0 to 1 (inclusive).

Implementation

double get speed => _speed;
void speed=(double speed)

Implementation

set speed(double speed) {
  if (speed >= 0.0 && speed <= 1.0) {
    _speed = speed;
  } else {
    throw UnitIntervalException.withValue(speed);
  }
}