rgb question

This is a discussion on rgb question within the Game Programming forums, part of the General Programming Boards category; Why are the primary colors in C++ red, green, and blue rather than red, yellow, and blue?...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595

    rgb question

    Why are the primary colors in C++ red, green, and blue rather than red, yellow, and blue?

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    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

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    197
    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)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL: Pixel addition
    By Hunter2 in forum Game Programming
    Replies: 4
    Last Post: 12-15-2008, 02:36 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 06:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 01:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21