LampArray.SetColor(Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets every lamp belonging to the LampArray to the desired color.
public:
virtual void SetColor(Color desiredColor) = SetColor;
void SetColor(Color const& desiredColor);
public void SetColor(Color desiredColor);
function setColor(desiredColor)
Public Sub SetColor (desiredColor As Color)
Parameters
- desiredColor
- Color
Desired color to set every lamp to.
Examples
Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.
Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.
Remarks
If a lamp doesn't support the desired color, it is set to the NearestSupportedColor
Black is equivalent to a lamp being 'off'.