intafon / kiibohd-animation-generator

Node.js script for generating animations for kiibohd configurator import
GNU General Public License v3.0
13 stars 2 forks source link

make the breathing animations more breathy #2

Closed intafon closed 6 years ago

intafon commented 6 years ago

Need to add a new animation color array generator to create more breathing-like animations. This would map the value of each color in the array to the sine curve from -π/2 to π/2, instead of linearly like they are now.

intafon commented 6 years ago

also, the breathing animations should take 12-20 breathes per minute, i.e. one full breath every 3 seconds or so, so for a pulse with 2 colors, the ramp to the 2nd color should take 1.5 seconds. With a frame delay of 3 (i.e. 3/100s of a second), there should be 50 colors from the first color to the second color.