Share via


LampArray.SetColorsForPurposes(Color, LampPurposes) Method

Definition

Sets the color of multiple lamps, corresponding to LampPurposes.

public:
 virtual void SetColorsForPurposes(Color desiredColor, LampPurposes purposes) = SetColorsForPurposes;
void SetColorsForPurposes(Color const& desiredColor, LampPurposes const& purposes);
public void SetColorsForPurposes(Color desiredColor, LampPurposes purposes);
function setColorsForPurposes(desiredColor, purposes)
Public Sub SetColorsForPurposes (desiredColor As Color, purposes As LampPurposes)

Parameters

desiredColor
Color

Array of desired colors.

purposes
LampPurposes

Array of corresponding LampPurposes to modify.

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