Rgb color enhancements (#391)

* Rgb48Color

* Rgb16Color

* Discord readme
This commit is contained in:
Michael Miller authored and GitHub committed 2020-12-26 09:54:21 -08:00
1 parent f33d78d3dc
commit de32dd9cc8
15 files changed
+940 -134

No files matched your search

+9
View File
@@ -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);
};