Updated Color objects (markdown)

Michael Miller
2016-02-26 19:48:36 -08:00
parent 26b178ff0f
commit e3ba11cf4a

@@ -9,7 +9,7 @@ This represents a color as RGBW model and exposes useful methods to manipulate c
The color components are Red, Green, Blue, and White.
This can only be used with NeoPixelBus that was declared with a four element color feature like NeoRgbwFeature.
# [HslColor object](https://github.com/Makuna/NeoPixelBus/blob/V2Beta/src/HslColor.h)
# [HslColor object](https://github.com/Makuna/NeoPixelBus/wiki/HslColor-object-API)
This represents a color as a HSL model and exposes useful methods to manipulate colors. While not the native color used, the extra overhead will be offset by intuitive color components and effects.
The color components are Hue, Saturation, and Lightness, all in the range of 0.0 to 1.0.
To darken the color, just reduce the L property. To brighten the color, just increase the L property. A normal range for L is from 0.0f to 0.5f when Saturation is set to 1.0f.
@@ -19,6 +19,6 @@ Note: There are many examples of HSL that demonstrate Hue component having a val
HslColor color(hueValue / 360.0f, saturationValue, lightnessValue);
```
# [HsbColor object](https://github.com/Makuna/NeoPixelBus/blob/V2Beta/src/HsbColor.h)
# [HsbColor object](https://github.com/Makuna/NeoPixelBus/wiki/HsbColor-object-API)
This represents a color as a HSB (aka HSV) model and exposes useful methods to manipulate colors. While not the native color used, the extra overhead will be offset by intuitive color components and effects.
This is included for completeness for those who are given code that uses this older format.