---
name: "SDL_Color"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_Color/3type"
---

# SDL\_Color(3type)

A structure that represents a color as RGBA components.

## NAME

SDL\_Color - A structure that represents a color as RGBA components.

## HEADER FILE

Defined in SDL3/SDL\_pixels.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef struct SDL\_Color** **{**     **Uint8 r;**     **Uint8 g;**     **Uint8 b;**     **Uint8 a;** **} SDL\_Color;**

## DESCRIPTION

The bits of this structure can be directly reinterpreted as an integer-packed color which uses the

**SDL\_PIXELFORMAT\_RGBA32**\
  format ( **SDL\_PIXELFORMAT\_ABGR8888**\
  on little-endian systems and  **SDL\_PIXELFORMAT\_RGBA8888**\
  on big-endian systems).

## AVAILABILITY

This struct is available since SDL 3.2.0.
