forked from Makuna/NeoPixelBus
Rgb color enhancements (#391)
* Rgb48Color * Rgb16Color * Discord readme
This commit is contained in:
1 parent
f33d78d3dc
commit
de32dd9cc8
15 files changed
+940
-134
No files matched your search
@@ -49,6 +49,11 @@ struct HslColor
|
||||
// ------------------------------------------------------------------------
|
||||
HslColor(const RgbColor& color);
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Construct a HslColor using Rgb48Color
|
||||
// ------------------------------------------------------------------------
|
||||
HslColor(const Rgb48Color& color);
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Construct a HslColor that will have its values set in latter operations
|
||||
// CAUTION: The H,S,L members are not initialized and may not be consistent
|
||||
@@ -109,5 +114,9 @@ struct HslColor
|
||||
float H;
|
||||
float S;
|
||||
float L;
|
||||
|
||||
private:
|
||||
static void _RgbToHsl(float r, float g, float b, HslColor* color);
|
||||
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user