[cairo] Raster Sources example

Carlos López González genetita at gmail.com
Fri Aug 17 03:35:27 PDT 2012


Hi!
I have a function that provides a color for a given position:

Color get_color(Point &p)const;

where Point is a convenience class for the double x and y user coordinates
in the 2D space.

I think it is possible to generate a surface image from that function using
the Raster Sources [1] API
Is there any practical example of that?

Thanks!

[1] http://cairographics.org/manual/cairo-Raster-Sources.html

-- 
Carlos
http://synfig.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120817/93114ece/attachment.html>


More information about the cairo mailing list