Return to previous page | Return to menu | Go to next page
Macro
Specify RGB values
#define C_RGB (r, g, b) (((b) & 0x1f) << 10 | ((g) & 0x1f) << 5 | ((r) & 0x1f) | 0x8000) Uint8 r ; Uint8 g ; Uint8 b ;
r red g Green b blue
Specify the RGB value to represent the color gradation.
The color gradation is RGB (0 to 1f).
This macro cannot specify a transparent color.
Reference: Chapter 7 Polygon surface attributes
C_RGB