/// <summary> /// Sets the color for the LED on the Kinect. /// </summary> /// <param name="color"> /// Color value /// </param> private void SetLEDColor(LEDColor color) { int result = KinectNative.freenect_set_led(this.parentDevice.devicePointer, color); if (result != 0) { throw new Exception("Could not set color to " + color + ". Error Code:" + result); } this.color = color; }