ARGB to red green and blue

BlitzMax Forums/BlitzMax Programming/ARGB to red green and blue

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.

It shifts the bits to right with the given amount of steps.

A 32bit color is an int. Its size is 4bytes. Every byte represents the information for 1 color (8 bits normally)

to get the value of every color, you have either to shift it or straight bitfilter it instead of doing 2 operations for 1 job. (in Blitz3D it was needed to do shr etc as you didn't have real hex to straight bitfilter it)