Updated Color objects (markdown)

Michael Miller
2016-03-06 09:22:54 -08:00
parent e9518221bc
commit 26464ffa49

@@ -9,6 +9,11 @@ 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.
# [HtmlColor object](https://github.com/Makuna/NeoPixelBus/wiki/HtmlColor-object-API)
This represents a color as a single uint32_t and exposes minimal methods to convert colors. This is primarily used to convert standard Html color value to other color objects and back.
The value is commonly represented in hexadecimal (ex. 0xff7f00). It is coded as three bytes, the left most being red (0xff), the middle being green (0x7f), and the right most being blue (0x00).
# [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.