> ## 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 結構參考

> 描述 RGBA 色彩的結構，在 GDK 中呼叫 ILampArray::SetColor、SetColorsForIndices 及相關 LampArray 照明方法時使用。

# 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 表示完全不透明。如果使用 0xFF 以外的 Alpha 值，色彩將會額外經過一個與黑色混合的步驟。若要避免此混合步驟，設定色彩時請勿傳入 0xFF 以外的任何 Alpha 值。

<a id="requirementsSection" />

## 需求

**標頭：** LampArray.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[照明 API 概觀](/zh-TW/build/core-features/common/lighting/gc-lighting-toc)\
[在 LampArray 上設定色彩](/zh-TW/build/core-features/common/lighting/lighting-colors)


## Related topics

- [LampArrayColor](/ko/reference/lighting/lamparray/structs/lamparraycolor.md)
- [LampArrayColor struct reference](/reference/lighting/lamparray/structs/lamparraycolor.md)
- [Referencia de la estructura LampArrayColor](/es/reference/lighting/lamparray/structs/lamparraycolor.md)
- [Setting colors on a LampArray](/build/core-features/common/lighting/lighting-colors.md)
- [ILampArray::SetColor](/ko/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolor.md)
