Files |
file | common-light.h |
| Functions common to light sensor drivers.
|
Functions |
void | RGBtoHSV (float red, float green, float blue, float &hue, float &sat, float &value) |
Detailed Description
Functions common to light sensor drivers
Function Documentation
void RGBtoHSV |
( |
float |
red, |
|
|
float |
green, |
|
|
float |
blue, |
|
|
float & |
hue, |
|
|
float & |
sat, |
|
|
float & |
value |
|
) |
| |
Convert RGB colors to HSV
- Parameters:
-
red | the red input value |
green | the green input value |
blue | the blue input value |
hue | the hue output value (from 0 to 365, or -1 if n/a) |
sat | the saruration output value (from 0 to 100, or -1 if n/a) |
value | the value output value (from 0 to 100) |
- Returns:
- void
Definition at line 43 of file common-light.h.