Skip to content
Convert color between RGB,HSL,HSB,CMYK,YUV,YIQ,XYZ,xyY,Lab,Luv,LCH ...
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information. Readme Aug 22, 2013
README.png Add Readme Aug 22, 2013
THANKS Readme Aug 22, 2013
yy_color_converter.c Fix Aug 22, 2013
yy_color_converter.h Add Readme Aug 22, 2013

YY Color Convertor

Convert color between RGB,HSL,HSB,CMYK,YUV,YIQ,XYZ,xyY,Lab,Luv,LCH ...


Mostly, the value in this code is in range 0 to 1.


double r, b, g, h, s, l;
r = 1.0;
g = 0.0;
b = 0.2;

RGB2HSL(r, g, b, &h, &s, &l);
You can’t perform that action at this time.