
col1-col3 depending on the selected color model (r,g,b or h,s,v).The colors depend on the currently selected animation color model. If called later animateStart () the color transition animation is continued from the stop point.ĭeletes all the colors of an animation and stops a running animation.Īdds a color to the animation list. Starts a color transition animation, works only if at least two colors are defined. v = Brightness V (value) 0-100 in percent (0 = off, 100 = full on).
s = Saturation S, 0-100 in percent (0 = grey, 50 = half saturated color, 100 = pure color ).
h = Hue as angle H, form 0 to 360 degrees on a Color wheel (around 0° for red, 120° for green, 240° for blue). Sets a color using the HSV color model and stops an eventually running animation. Parameter: b = blue, from 0 to 255 (0 is off, 255 highest color brightness level) Parameter: g = green, from 0 to 255 (0 is off, 255 highest color brightness level) Set the amount of green on the RGB color model and stops an eventual animation. Parameter: r = red, from 0 to 255 (0 is off, 255 highest color brightness level) Set the amount of red on the RGB color model and stops an eventual animation. Parameter: from 0 to 255 (0 is off, 255 highest color brightness level) Sets a color using the RGB color model and stops an eventually running animation. UseBrightnessAdjust( boolean isAdjust ) Descriptions: setRGB( int r, int g, int b ) The library is in a beta phase, is constantly evolving, but can already be used with absolutely NO WARRANTY.ĪnimateColorAdd( int col1, int col2, int col3, int t, int num=-1 ) This includes functions for direct set colors in RGB or HSV color model, and animation functionality of color transitions. To simplify dealing with multiple RGB strips or individual RGB LEDs I have written a small RGB library.