[cairo] RGB to CIELab transformation

Necko Nedjoni opustenom at hotmail.com
Thu Jan 19 23:01:03 PST 2012


As a part of a larger project, I was recently assigned to investigate the possibility of coloringswithin our visualizations. Namely, I came across the CIELab color space, which seems to be preferable choice in the relatedliterature. The initial readings suggest that a conversion from device-depended RGB is possible, and I wonder how this could be achieved with cairo.
The function I use currently (sample):
cairo_set_source_rgb(cr, 1, 0.0, 1.0);
Perhaps someone could share the conversion code. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120120/19ad42ca/attachment.html>


More information about the cairo mailing list