예제 #1
0
		public void BlinkColor(int numberOfTimes, RgbColor targetColor)
		{
			if (this.Animating)
				this.Stop();

			this.AnimationType = AnimationTypeEnum.BlinkColor;
			this.TargetColor = targetColor;
			this.TargetPulses = numberOfTimes;
					
			this.Start();
		}
예제 #2
0
		public void MorphToColor(RgbColor targetColor)
		{
			if (this.AnimationType != AnimationTypeEnum.MorphToColor && this.Animating)
				this.Stop();

			this.AnimationType = AnimationTypeEnum.MorphToColor;
			this.TargetColor = targetColor;

			this.Start();
		}