LampArray.SetColorsForPurposes(Color, LampPurposes) 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 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
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 the lamp doesn't support the desired color, it is set to the NearestSupportedColor
Black is equivalent to a lamp being 'off'.