# Questions tagged as 'rgb'

2

## Why green = blue + yellow, but in RGB yellow = green and red?

Why does color formation in RGB does not follow the same pattern as nature, and does it work anyway? For example: In RGB, yellow = red and green: # FF0000 + # 00FF00 = # FFFF00. But if we take a yellow and a blue colored pencil (or paint,...
7

How do you convert a Hexadecimal color ( #FFFFFF ) to RGB ( R ed, G reen, B p> Example
1

## Help with RGB color in 16bit Hexadecimal

So, I'm creating an editor for a PS2 football game in C #. And the "color system" of the game is RGB, and so far everything was going very well, because I was encountering with "normal" Hex codes in the game how to choose the color R: 255 G: 255...
1

## How to format a cell from the RGB code contained in the cell itself

Is it possible to change the background color of a cell from a code RGB or hexadecimal written as text in the cell itself? Let's say I write 255,0,0 in célula A1 and when I press enter the bottom of the cell ch...
1

## How can I convert RGB values into pixels for an image in PHP?

for (\$j = 0; \$j < \$altura; \$j++) { for (\$i = 0; \$i < \$largura; \$i++) { \$rgb = imagecolorat(\$img, \$i, \$j); \$rgb = imagecolorsforindex(\$img, \$rgb); \$imagem[\$c] = \$rgb['red'] + \$rgb['green'] + \$rgb['blue']; \$e = 9; \$codig...
1

## Editing images using OpenCV without ready functions

I have the following image shown below and I need to turn it gray and then binarize it. Iusethefollowingcodetoshowitonthescreencv::Matimg=cv::imread("lena.jpg");// Lê a imagem no local onde ela é gerada(matriz) cv::namedWindow("RGB"); cv::im...
1

## How to identify patterns in color?

I have an image and loop through each pixel of it. I need to identify the color of the pixel: - It's a light or dark color; - And the tonality of it (for example if it is bluish or reddish, greenish, etc ...). I'm using the RGB values as...
1

## How to convert color from 32 (24) bits to 16 bits?

So, guys, I'm having a problem, I'm creating an editing tool for a PS2 football game. And this game has two color "systems", which are: The "normal" RGB that is; A: 0 to 255, G: 0 to 255, B: 0 to 255. And the, or I think it's rsrs 5bitR...
2