How do computers make any color using red/green/blue, when paints make every clor using red/yellow/blue?o
Im always confused by RGB. I learned that if you want orange, you mix red and yellow. If you want green, you mix blue and yellow, if you want purple, you mix red and blue.
How is it that computers need green and not yellow?
It's kinda cool (to me at least lol) how literal the terms "additive" and "subtractive" for color mixing are. With additive mixing (such as on a computer screen), you start with black and add the primary colors (RGB) in different combinations. If you add all of them you get white.
Subtractive mixing (like pigments) starts from white and "subtracts" those same RGB colors. You can think of cyan, magenta, and yellow as "minus red", "minus green", and "minus blue" respectively, since that's which wavelengths thise pigments absorb. So mixing cyan and magenta for instance gives you "white (RGB) minus red minus green", which leaves only blue.
Computer screens emit light, so when your computer shows a green LED next to a red LED, both green and red light wavelengths are sent to your eyes, and your brain interprets this as yellow. This is because your eyes only have red, green, and blue receptors in them, so sending green light mixed with red light is indistinguishable from pure yellow light.
Pigment, instead, works by absorbing light. The trick is that red, yellow, and blue are not the primary colors of light--it's instead Cyan, Magenta, and Yellow (which look similar to Red, Yellow, and Blue). Yellow pigment absorbs blue light, magenta pigment absorbs green light, and cyan pigment absorbs red light. Therefore, if you mix yellow and cyan pigments together, the resulting mixture absorbs the blue AND red light, so green is the only wavelength left that gets reflected back and picked up by your eyes.
If you want to fix it, there should be an edit button behind the 3 dot menu under your post heading which will allow you to put that 'o' back where it belongs.
Technology Connections has a couple interesting videos on the subject. Here's one focused on the color brown with an explanation of additive vs. subtractive color (mixing light vs. pigments) starting around this timestamp. There's also this video with some cool demonstrations using RGB LEDs and some common household objects.
White light has all the different colors in it - that's why a prism or water drops can make a rainbow by making the different colors come out at slightly different angles. When you have, say, red paint, it's reflecting the red light and absorbing all the rest. Same for any other color. So when you mix paint, you're mixing stuff that absorbs different parts of the light, the more different ones you're mixing in the more you're absorbing. Mix all the colors and you get a dark grey going on black because it's absorbing most of the light.
But with computers, you're not mixing things that absorb light, you're mixing the light itself. If you mix all the colors of light together, you get white (like doing the reverse of making a rainbow). So the formulas for making colors are kind of inverted from mixing paint.
Basically there are two color models, additive and substractive. RGB is additive - turning on red it triggers the red receptors in the eye. If you turn on all three it triggers all your color receptors and you'll see white. That is all the visible spectrum, if you look at the Sun (which you shouldn't) you perceive it as white even if the maximum of the emission is at green.
When mixing paint (subtractive model, like CMYK on printers) if you mix all colors, they absorb different part of the light and don't reflect anything visible for you, and you'll see black(ish)
Just to clarify, with pigments (subtractive color mixing) the primary colors are in reality cyan, magenta, and yellow, which is why printers use CMY (and K, which is black). Blue and red are kinda close to cyan and magenta though, so those are sometimes stated as the primary colors along with yellow even though that's not exact
Btw the three colour channels, red, green, blue each have 8 bits, 2^8 = 256. And for all three channels there are 256 x 256 x 256 = 16,777,216 permutations of possible colours.
If you have a Mac you can use Colour Picker (in Applications/Utilities) to hover over your screen and see the channel mixes of colours under the cursor.