Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::image::Color Macro
C++
#define Color( r,g,b ) (((_32)( ((_8)((b)AND_FF))|((_16)((_8)((g))AND_FF)<<8))|(((_32)((_8)((r))AND_FF)<<16)))|0xFF000000)

A macro to create a solid color from R G B coordinates.

CDATA color1 = Color( 255,0,0 ); // Red only, so this is bright red
CDATA color2 = Color( 0,255,0); // green only, this is bright green
CDATA color3 = Color( 0,0,255); // blue only, this is birght blue
CDATA color4 = Color(93,93,32); // this is probably a goldish grey
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!