DOKK / manpages / debian 12 / libsdl1.2-dev / SDL_Color.3.en
SDL_Color(3) SDL API Reference SDL_Color(3)

SDL_Color - Format independent color description

typedef struct{

Uint8 r;
Uint8 g;
Uint8 b;
Uint8 unused; } SDL_Color;

Red intensity
Green intensity
Blue intensity
Unused

SDL_Color describes a color in a format independent way. You can convert a SDL_Color to a pixel value for a certain pixel format using SDL_MapRGB.

SDL_PixelFormat, SDL_SetColors, SDL_Palette

Tue 11 Sep 2001, 23:01 SDL