4 ms·
I don't really understand how ( red - green + blue ) determines the pixel's redness.
by pavel_lishin 16y ago
I don't really understand how ( red - green + blue ) determines the pixel's redness.
- timmorgan 16y agoActually, I think it's (red - (green + blue)). Equal parts red, green, blue, e.g. FFFFFF or 555555 is just gray. With this formula, that would be zero -- so no red. With his formula, he's getting any pixel that has 100 out of 255 increments greater than the green and blue channels combined.