Title: Color codes
Description: Now to seperate the colors?
Erik - September 23, 2003 06:25 PM (GMT)
In GM every color is a code like 65554 or so. I heard that it is possible to seperate the rgb from that again. You know how?
snabela - September 23, 2003 06:34 PM (GMT)
I dont believe that. White is 16777215 and as RGB it is:
255
255
255
Erik - September 23, 2003 06:52 PM (GMT)
I'm trying to get the average (mixed) color of two colors, and (draw_getpixel(..)+draw_getpixel(..))/2 does NOT work :D that why I want to know how to split them.
Burning Sheep Productions - September 23, 2003 11:45 PM (GMT)
The first two numbers are red, the second two are green and the third two are blue.
Donovan_dcann - September 24, 2003 01:12 AM (GMT)
Erik - October 6, 2003 07:28 PM (GMT)
| QUOTE (Donovan_dcann @ Sep 24 2003, 04:12 AM) |
| use this cobe |
That's the other way around. I want to turn the result of that function - a big number - back into 3 serperate values. And I think BSP is on the trail, thx! :D