Raster Sources example
Carlos López González <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAF52pzJNRH36=-2nx30Bj--n6uz2MQTsp+80vSum6uzXz4b-KA@mail.gmail.com> |
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 -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo