LampArray.SetColor(Color) Method

Definition

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

LampArray sample

Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.

AutoRGB Sample

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'.

Applies to

See also