For the colors to cycle through red, green, and blue, we want to make a code that utilizes a basic inversely proportional relation.
Simply put, as one goes higher (i), the other one decreases (255-i).
This means that when i = 0,
Red is 255 and Green is 0
And when i = 255,
Red is 0 and Green is 255.