Allegro and color commands
I know how specify what color I want to set to a pixle in Allegro, but I was woundering, is there a way to record what the color of specific pixle is?
I use the command:
to set the color for a comand like:
what I want it do is either detect what 'red', 'green', and 'blue' of a specific pixle or 'color' of the pixle
PS: if this is the wrong section for the question, I am sorry, and if you could move it to the correct section
Dosen't allegro have a getpixel function?
I dont know. what is the function?
Originally Posted by Quantum1024
You can find the getpixel function in the allegro docs
Once you have the pixel value in a variable you can seperate it into it's componant colors by and'ing/bitshifts.
ok, but I want to know what the color of the pixle is already not how to change it