Tell us about yourself!

Complete Your Profile
  • ChristianK56 commented on fournierm's instructable Digispark RGB LED Fader2 years ago
    Digispark RGB LED Fader

    If you want the sine curves to be more evenly aligned with eachother, you can change the equations to:r=127*(sin(x/180*PI)+1);g=127*(sin(x/180*PI+2/3*PI)+1);b=127*(sin(x/180*PI+4/3*PI)+1);This way, the gaps between the max value peaks from each curve are all the same length (of time) apart.(You can see it for yourself if you graph the three equations in a program, such as Desmos, or even just a graphing calculator)

    View Instructable »