I am wondering why colour editing paramaters are based on this RGB, why is it not Red, Yellow, Blue, i.e the three primary colours? i sem to recall this as the electron guns in old colour TV Tube would be RGB too?
I am wondering why colour editing paramaters are based on this RGB, why is it not Red, Yellow, Blue, i.e the three primary colours? i sem to recall this as the electron guns in old colour TV Tube would be RGB too?
This might help you.
Code:>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.
Actually, Red Green and Blue are primary colours.
If you want Yellow to be a primary colour, then you need to mix it with Magenta and Cyan - since those are the other primary colours you need to produce all colours.
And looking at it, you will probably find that these are the opposites. Yellow is the opposite of Blue, Cyan is the opposite of Red, Magenta is the opposite of Green.
The reason for all this is that there are two different ways of mix colours: Additive, where more colour means closer to white, and subtractive, where mixing more colour means closer to black. For example, 100% Red + 100% Green + 100% Blue is white, 100% Cyan + 100% Magenta + 100% Yellow is black.
So additive colours are used for CRT's and such things.
Subtractice colour mixing is used in colour printing. As you may be aware, most colour printing is done using CMYK (K stands for blacK). The purpose of this is twofold:
1. Black printing ink is cheaper than 3 layers of Cyan, Magenta and Yellow.
2. It's near impossible to produce ABSOLUTELY correct Cyan, Magenta and Yellow - so you end up with "dark brown" instead of black, because the colours aren't perfect.
Edit: PING obviously did the right thing by pointing to a Wiki page describing it, rather than writing down the whole story (less concise anyways).
--
Mats
Last edited by matsp; 04-18-2008 at 04:45 AM.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
hehe, ok, i still don't see why it was neccesary to use green though, my point being green is a mix of yellow and blue.
you can't mix any two other colours to make a red, a blue or a yellow, well certainly not using paint in the real world, so they are the real primary colours no?
i like the image seperated into components on the wiki link...
Last edited by rogster001; 04-18-2008 at 04:57 AM. Reason: can > can't
You can ONLY make green from mixing Yellow and Blue in a subtractive colour mixing.
When you use "paints" or "ink", you are "taking away" colour when mixing something in.
When you use light (such as exciting a phosphorous cell or lighting a cell on a CRT/LCD panel), then the colour is added together, so adding Green and Red together makes Yellow (that is, by taking away Blue from white, which is what Yellow ink does when you apply it to white paper - it reflects all colours except blue).
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
super stuff that mate, i like it! missed that bit in me physics book too..erm.....sure you could teach that to kids in primary(;->) school though, then they would not be spenidng rest of their days thinking you can't make yellow by mixing other colours!
Well, I doubt it was covered in my Physics education either, but I worked with a small company doing high-level pre-printing processing, such as producing the films for magazines and papers, so I had to learn the reasons behind conversion of colours. [Such as RGB -> CMYK].
--
Mats
Last edited by matsp; 04-18-2008 at 06:33 AM.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
If you get GIMP (or a popular equivalent which costs $$$), there are many different ways of editing colours, not just RGB.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
And HSL
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
>I am wondering why colour editing paramaters are based on this RGB
A committee a long time ago chose these 3 colors because these best accommodate the retina of the human eye. They stimulate the cones in the retina in certain ways (like the Wikipedia article stats which PING linked to).
RGB are the primary colors of light, and CMY are the primary colors of pigment (as has also been mentioned). Red, yellow, and blue are not primary colors by any means, even if they teach this in grade school. The proper primary colors of pigment are cyan, magenta, and yellow.
Here is a diagram that shows the full color chromaticity diagram:
http://en.wikipedia.org/wiki/Color#R...pectral_colors
All the pure colors are on the outside.
Not true in the slightest...Red, yellow, and blue are not primary colors by any means, even if they teach this in grade school.
Red, Yellow and Blue are the primary colors in color theory.
They're the colors that can't be created by mixing any other
colors on a palette. RYB being taught as primary colors isn't
some attempt by elementary schools at dumbing down fact
so their students can grasp the concepts more easily.
CMY (and Black) are the primary colors used in color printing,
not art. No painter has ever mixed CMY (and Black) on their
palette. Magenta wasn't even created until the late 1800s.
Cyan isn't even a single color; it encompasses blues and
greens.
So as far as art theory goes, Red Yellow and Blue are the
primary colors.
Staying away from General.