Setting colors on a LampArray
Setting colors on a LampArray
All color update functions on ILampArray use the LampArrayColor struct to represent an RGBA color value.
The alpha value (LampArrayColor::a) represents the relative transparency of a 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, don’t pass an alpha value other than 0xFF when setting colors.
ILampArray SetColor APIs are designed to be called from a single thread for best performance and Lamp state consistency.
The following example shows how to update colors for individual Lamps or groups of Lamps on a LampArray.
Last modified on August 4, 2026
Related topics
LampArrayColor struct referenceILampArray::SetColor methodILampArray::SetColorsForIndices methodILampArray::SetColorsForScanCodes methodLighting API Overview