> ## 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

> LampArrayColor

# LampArrayColor

用红、绿、蓝和 alpha 通道描述一种颜色。

<a id="syntaxSection" />

## 语法

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

<a id="membersSection" />

### 成员

*r*\
类型：uint8\_t

颜色的红色通道值。

*g*\
类型：uint8\_t

颜色的绿色通道值。

*b*\
类型：uint8\_t

颜色的蓝色通道值。

*a*\
类型：uint8\_t

颜色的 alpha 通道值。这表示颜色的相对透明度，其中零表示完全透明，0xFF 表示完全不透明。如果使用的 alpha 值不是 0xFF，颜色将会与黑色进行额外的混合步骤。为了避免这一混合步骤，设置颜色时请勿传入除 0xFF 以外的 alpha 值。

<a id="requirementsSection" />

## 要求

**头文件：** LampArray.h

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[光照 API 概览](/build/core-features/common/lighting/gc-lighting-toc)\
[在 LampArray 上设置颜色](/build/core-features/common/lighting/lighting-colors)


## Related topics

- [ILampArray::SetColor](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolor.md)
- [ILampArray::SetColorsForIndices](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
- [LampArray](/zh-CN/reference/lighting/lamparray/lamparray_members.md)
- [ILampArray::SetColorsForScanCodes](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforscancodes.md)
- [在 LampArray 上设置颜色](/zh-CN/build/core-features/common/lighting/lighting-colors.md)
