Sack Library Documentation
sack::image::Color Macro
#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
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!