Hi!<br>I have a function that provides a color for a given position:<br><br>Color get_color(Point &p)const;<br><br>where Point is a convenience class for the double x and y user coordinates in the 2D space.<br><br>I think it is possible to generate a surface image from that function using the Raster Sources [1] API<br>
Is there any practical example of that?<br><br>Thanks!<br><br>[1] <a href="http://cairographics.org/manual/cairo-Raster-Sources.html">http://cairographics.org/manual/cairo-Raster-Sources.html</a><br clear="all"><br>-- <br>
Carlos<br><a href="http://synfig.org" target="_blank">http://synfig.org</a><br><br>