
124 5. Sprites and Animation
alpha value of a color by performing a bitwise AND. e alpha value determines how
transparent a color appears. A value of 0 is completely transparent and a value of 255 is
completely opaque. We will use these alpha values in later examples. To specify the color
orange, for example, just use graphicsNS::ORANGE in the code.
// Some common colors
// ARGB numbers range from 0 through 255
// A = Alpha channel (transparency where 255 is opaque)
// R = Red, G = Green, B = Blue
const COLOR_ARGB ORANGE = D3DCOLOR_ARGB(255,255,165, 0);
const COLOR_ARGB BROWN = D3DCOLOR_ARGB(255,139, 69, 19);
const COLOR_ARGB LTGRAY = D3DCOLOR_ARGB(255,192,192,192); ...