Why are the primary colors in C++ red, green, and blue rather than red, yellow, and blue?
Why are the primary colors in C++ red, green, and blue rather than red, yellow, and blue?
What do you mean "in C++"? Do you mean why do you mostly find an RGB color space used in computer graphics? That is simply because the human visual system is also an RGB color space. Also, yellow is the sum of red and green, so that wouldn't quite make sense.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
Well, if you think about it, you will find people that are red, blue, or green color blind, or a mix of those. I think that is why we use RGB for Monitors (CRT and LCD from what I know). You can make all the same colors with RGB as you can with RYB (red yellow blue) or CMYB (cyan magenta yellow and black, the colors of ink used for printers)