Getting Colours from Read Pixel

Blitz3D Forums/Blitz3D Beginners Area/Getting Colours from Read Pixel

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Just store whatever ReadPixel returns for a white pixel in a variable before you start your main game loop.

eg:

global white%
color 255,255,255
plot 0,0
white=ReadPixel(0,0)

and then compare bg_check to your "white" variable