aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-26 23:40:40 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-26 23:40:40 -0500
commit2d0ac035f5095cef9e9a0b0dee7b50a90ee2e682 (patch)
treef41b9e513498b7c2cfa10ea08f56970cd7d8a240
parentd9d556cff5d3ca0d041604e39c70fce16c0eb0b1 (diff)
Improved color variable documentation.
-rw-r--r--light.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/light.go b/light.go
index 77b2dae..f6674de 100644
--- a/light.go
+++ b/light.go
@@ -151,7 +151,8 @@ func (light *Light) ColorLoop(activate bool) error {
return light.SetState(LightState{On: true, Effect: state})
}
-// XY HSL colors used in `Light.SetColor`
+// XY positions on the HSL color spectrum used in `Light.SetColor`
+// https://en.wikipedia.org/wiki/HSL_and_HSV
var (
RED = &[2]float32{0.6915, 0.3083}
YELLOW = &[2]float32{0.4023, 0.4725}