Return to previous page | Return to menu | Go to next page


Macro

C_RGB

Specify RGB values ​​

Structure

#define C_RGB (r, g, b) (((b) & 0x1f) << 10 | ((g) & 0x1f) << 5 | ((r) & 0x1f) | 0x8000)
          Uint8 r ;
          Uint8 g ;
          Uint8 b ;

Member

r red
g Green
b blue

Description

Specify the RGB value to represent the color gradation.
The color gradation is RGB (0 to 1f).

Remarks

This macro cannot specify a transparent color.

Reference: Chapter 7 Polygon surface attributes

C_RGB


Return to previous page | Return to menu | Go to next page