From bf65171c010ae8a9229b9bf32d959c007e03d441 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Mon, 29 Feb 2016 13:34:39 -0800 Subject: [PATCH] Updated FAQ (markdown) --- FAQ.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FAQ.md b/FAQ.md index 5646c6f..54e6624 100644 --- a/FAQ.md +++ b/FAQ.md @@ -36,12 +36,12 @@ NeoPixelBus* Strip = NULL; ### How can I convert Hsl to Rgb and/or just set the colors with Hsl? There is a HslColor object that will automatically convert to any of the other color object by just assigning them. ``` - HslColor myColor(244.0f, 1.0f, 0.5f); + HslColor myColor(0.244f, 1.0f, 0.5f); RgbColor rgbOfMyColor = myColor; ``` Further, all the color objects can be used by the SetPixelColor(). ``` - HslColor myColor(244.0f, 1.0f, 0.5f); + HslColor myColor(0.244f, 1.0f, 0.5f); strip.SetPixelColor(0, myColor); ``` The only limitation is that the RgbwColor can not be used directly with a NeoPixelBus defined with a 3 element feature like NeoRgbFeature or NeoGrbFeature. This is due to the loss of color that could happen. So the following will create a compile error.