---
name: "SDL_Color"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_Color"
---

# SDL\_Color(3)

Format independent color description

## NAME

SDL\_Color - Format independent color description

## STRUCTURE DEFINITION

```
typedef struct{
  Uint8 r;
  Uint8 g;
  Uint8 b;
  Uint8 unused;
} SDL_Color;
```

## STRUCTURE DATA

- **r**

  Red intensity

- **g**

  Green intensity

- **b**

  Blue intensity

- **unused**

  Unused

## DESCRIPTION

**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**.

## SEE ALSO

**SDL\_PixelFormat**, **SDL\_SetColors**, **SDL\_Palette**
