RGB : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

RGB
RGB (Red Green Blue). The colour-describing scheme most commonly used in Java and HTML (Hypertext Markup Language). The alternative is HSB (Hue Saturation Brightness).

When you mix paints, the primary colours are red, yellow and blue, but when you mix beams of light, (as on a CRT (Cathode Ray Tube) screen), the primary colours are red, green and blue. The primaries differ because every extra pigment subtracts from the light reflected and every extra beam of light adds to the light projected. The asymmetry is still puzzling. Why is the primary yellow replaced by green, when you switch from pigments to light beams, but red stays invariant?

The rules of how you can simulate non-primary colours (i.e. other frequencies on the visual spectrum) by blending primaries are a function, not of physics, but of biology — how the human vision receptors work. There is thus no requirement for the scheme to be simple or logical, just functional.

There are four kinds of colour receptor in your eye. One set of cones are most sensitive to light at 420 nm (nanometers) (blue-violet), another set to 434 nm (blue), rods at 498 (green) and another set of cones at 564 (yellow-green). (This goes counter to my intuition. I suspect an error either in those frequencies or in the colours shown below for those frequencies. It seems intuitively to me my eyes are most sensitive in the yellow-orange region.) Each is sensitive to other colours (frequencies) as well but it drops off around the most sensitive point in roughly a bell shaped curve. Rods are sensitive to low light intensities. They function primarily for night vision.
wavelength spectrum

Colour vision works by your brain comparing the frequency of firing of the various types of receptor. You can thus fool the brain into thinking it is seeing orange, for example, by showing it a beam of red light at the same time as a beam of green light at 2/3 the intensity. That produces a similar aggregate stimulating effect on the receptors that a beam of pure orange 630 nm light would.

There are colours like brown and purple that don’t appear on the spectrum. They are made of a mixture of true spectral colours. They too can be simulated with mixtures of red, green and blue light.


This page is posted
on the web at:

http://mindprod.com/jgloss/rgb.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\rgb.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[18.224.73.107]
You are visitor number