public void BlinkColor(int numberOfTimes, RgbColor targetColor) { if (this.Animating) this.Stop(); this.AnimationType = AnimationTypeEnum.BlinkColor; this.TargetColor = targetColor; this.TargetPulses = numberOfTimes; this.Start(); }
public void MorphToColor(RgbColor targetColor) { if (this.AnimationType != AnimationTypeEnum.MorphToColor && this.Animating) this.Stop(); this.AnimationType = AnimationTypeEnum.MorphToColor; this.TargetColor = targetColor; this.Start(); }