colorDrift.gif
RGB values are additive—they mix as light, not pigment. This property is found within the code:
where col0, col1, and col2 are Red, Green, and Blue. This shows the calculation for the three-way intersection. The R, G, and B channels of each circle color are all added seperately in order to get the R,G,B channels of the final color.
Since the colors Red, Green, and Blue all have a maximum color value (255) in a single color channel, adding the seperate channels of these three primary colors gives you 255,255,255. In RGB color codes, this is white. Cyan, Magenta, and Yellow are made by adding just two colors together, which means the final color ends up with one color channel equal to 0.
CircleMusic.mp3:
Code: coming soon