Hi Donald,

Oh, you are worried about the SIN function, I bet. Don't worry.

SIN(anything) keeps a number between -1 and 1, it goes up and down between -1 and 1 cycles of 2*pi = 6.28....

So it is used here to make micro changes to color one of the R, G, B color values of _RGB(R, G, B)

Each of R, G, B has a range of 0 to 255, 255 = 127 + 127

now if we multiply 127 * sin(x), we get numbers from -127 to 127

add that to 127 and then we get numbers from 0 to 254 which is the range used for each of R G B.

In summary, SIN is used here to keep each color value of RGB between 0 and 254,

That's it for SIN (for today). No matter what number you feed a SIN function, it will always kick out a number between -1 and 1. That is all we used it for in this demo.

Oh, you are worried about the SIN function, I bet. Don't worry.

SIN(anything) keeps a number between -1 and 1, it goes up and down between -1 and 1 cycles of 2*pi = 6.28....

So it is used here to make micro changes to color one of the R, G, B color values of _RGB(R, G, B)

Each of R, G, B has a range of 0 to 255, 255 = 127 + 127

now if we multiply 127 * sin(x), we get numbers from -127 to 127

add that to 127 and then we get numbers from 0 to 254 which is the range used for each of R G B.

In summary, SIN is used here to keep each color value of RGB between 0 and 254,

That's it for SIN (for today). No matter what number you feed a SIN function, it will always kick out a number between -1 and 1. That is all we used it for in this demo.

B += x