CSS3 style color animation library for controlling RGB leds on Arduino https://vimeo.com/79962595 For information on how to install a library for the Arduino IDE check here: http://arduino.cc/en/Guide/Libraries
animation-duration
aLA: Specifies how many milliseconds an animation takes to complete one cycle. Default 1000ms.
can be set either when the animation is set:
myAnimator.setAnimation(animationKeyFrameArray, nKeyFrames, duration_ms);
or BEFORE to set the animation:
myAnimator.setDuration(duration_ms);
myAnimator.setAnimation(animationKeyFrameArray, nKeyFrames);
animation-timing-function
animation-delay
animation-iteration-count
aLA: Specifies the number of times an animation is played. Default infinite;
in setup, for setting number of iterations
myAnimator.setIterations(nIterations);
for setting infinite iterations
myAnimator.setIterationsInfinite(true);
or restore past number of iterations
myAnimator.setIterationsInfinite(false);
animation-direction
aLA: Specifies if the animation is played always from begin to end "normal" or alternately from begin to end, then from end to begin "alternate". Default is "normal".
in setup, for setting the "alternate" mode.
myAnimator.setAlternate(true);
"normal" mode
myAnimator.setAlternate(false);
animation-play-state
Transition when animation are changed on runtime
myAnimator.setTransitionDuration(unsigned long _transitionDuration)
=====================
Check the Examples for an idea of how to use the library