Hi
I recently learnt how to do crash collision based on colours. So you can use something like img.getpixel(0,0) to retrieve the colour of the pixel at (0,0) on the picture "img." I have experimented quite a lot with it and have managed to make some programs that draw a rectangular box the same colour as the pixel on an image I am highlighting.
How do you do the same to a polygon or a rectangle. I can't seem to be able to use the getpixel command with any sort of shape, though for the purposes of my program I would like to. Is there any way for this or do I have to use an image for colour detection?
Thanks