> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LampArrayColor struct reference

> Struct describing an RGBA color used when calling ILampArray::SetColor, SetColorsForIndices, and related LampArray lighting methods in the GDK.

# LampArrayColor

Describes a color in terms of red, green, blue and alpha channels.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
struct LampArrayColor
{
    uint8_t r;
    uint8_t g;
    uint8_t b;
    uint8_t a;
};
```

<a id="membersSection" />

### Members

*r*\
Type: uint8\_t

The red channel value of the color.

*g*\
Type: uint8\_t

The green channel value of the color.

*b*\
Type: uint8\_t

The blue channel value of the color.

*a*\
Type: uint8\_t

The alpha channel value of the color. This represents the relative transparency of the color, where zero is fully transparent and 0xFF is fully opaque. If an alpha value other than 0xFF is used, the color will undergo an additional blending step against black. To avoid this blending step, do not pass in any alpha value other than 0xFF when setting colors.

<a id="requirementsSection" />

## Requirements

**Header:** LampArray.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[Lighting API Overview](/build/core-features/common/lighting/gc-lighting-toc)\
[Setting Colors on a LampArray](/build/core-features/common/lighting/lighting-colors)


## Related topics

- [LampArrayPosition struct reference](/reference/lighting/lamparray/structs/lamparrayposition.md)
- [Setting colors on a LampArray](/build/core-features/common/lighting/lighting-colors.md)
- [LampArray API members reference](/reference/lighting/lamparray/lamparray_members.md)
- [ILampArray::SetColor method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolor.md)
- [ILampArray::SetColorsForIndices method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
