#include <cmath>
Go to the source code of this file.
Functions |
void | extractHSL (float rgb, double &h, double &s, double &l) |
void | extractRGB (float rgb, uint8_t &r, uint8_t &g, uint8_t &b) |
void | HSLToRGB (double h, double s, double l, uint8_t &r, uint8_t &g, uint8_t &b) |
void | RGBToHSL (uint8_t r, uint8_t g, uint8_t b, double &h, double &s, double &l) |
void | writeHSL (double h, double s, double l, float &rgb) |
void | writeRGB (uint8_t r, uint8_t g, uint8_t b, float &rgb) |
Function Documentation
void extractHSL |
( |
float |
rgb, |
|
|
double & |
h, |
|
|
double & |
s, |
|
|
double & |
l |
|
) |
| |
void extractRGB |
( |
float |
rgb, |
|
|
uint8_t & |
r, |
|
|
uint8_t & |
g, |
|
|
uint8_t & |
b |
|
) |
| |
void HSLToRGB |
( |
double |
h, |
|
|
double |
s, |
|
|
double |
l, |
|
|
uint8_t & |
r, |
|
|
uint8_t & |
g, |
|
|
uint8_t & |
b |
|
) |
| |
void RGBToHSL |
( |
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b, |
|
|
double & |
h, |
|
|
double & |
s, |
|
|
double & |
l |
|
) |
| |
void writeHSL |
( |
double |
h, |
|
|
double |
s, |
|
|
double |
l, |
|
|
float & |
rgb |
|
) |
| |
void writeRGB |
( |
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b, |
|
|
float & |
rgb |
|
) |
| |