---
title: "slint::Rgba8Pixel Struct"
description: "Represents an RGBA pixel."
---
```cpp
struct Rgba8Pixel;
```

```cpp
#include <slint.h>
```

Represents an RGBA pixel.

## Public Attributes

### `r`

```cpp
uint8_t slint::Rgba8Pixel::r
```

red value (between 0 and 255)

### `g`

```cpp
uint8_t slint::Rgba8Pixel::g
```

green value (between 0 and 255)

### `b`

```cpp
uint8_t slint::Rgba8Pixel::b
```

blue value (between 0 and 255)

### `a`

```cpp
uint8_t slint::Rgba8Pixel::a
```

alpha value (between 0 and 255)