Principle of the method RGB

Principle of the method RGB

RGB colors are colors that exist in a computer other than the color of CMYK and HSL color. RGB method is used to display color of the emitted light. This color is almost similar to the basic color theory, but do not use the yellow is replaced by the green color.

In the text-based programming, such as xBase (dBase / FoxPro / Clipper), RGB color is defined by very simple as the basic command SET COLOR TO RGB color. In xBase programming, the color code used is R (red / red), G (Green / green), B (blue / blue), W (white / white), and N (none / no black). In the context of the RGB or color of light, then it is actually not black. The black color is the color without light, so the black color RGB value is zero.

Principle of the method RGBIn the programming GUI, then RGB has a wider spectrum than text-based era. Some tools use RGB with a value of 0 s / d 255. There is also a hexadecimal value of the menggunan 00 to FF.

example:

RGB (255,0,0) will produce a perfect red color
RGB (255,0,255) will produce a violet color (in RGB, but it would be close to pink)
RGB (0,50,0) will produce a dark green color

In hexadecimal, the method of determining the same color, eg red color with the RGB (FF, 00,00), blue color with the RGB (00,00, FF). Giving the maximum RGB values​​, ie RGB (255,255,255) or RGB (FF, FF, FF) will produce a white color. Instead giving a minimum value of RGB (0,0,0) will produce a black color.

To produce a gray color can give the same value on the elements of R, G, and B. If the value is small then it will produce a dark gray and the greater its value will produce a gray color even brighter. For example RGB (20,20,20) produces a dark gray and RGB (200,200,200) will produce a gray color lighter.

Share this post to :


Blog, Updated at: 8:46 PM
 
back to top