Converting a colour to do a WritePixelFast

BlitzPlus Forums/BlitzPlus Programming/Converting a colour to do a WritePixelFast

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.

RGB = ( RED SHL 16 ) + ( GREEN SHL 8 ) + BLUE, so in your example it would be: RGB = ( 255 shl 16 ) + ( 0 shl 8) + 255