Open rezaali opened 12 years ago
this might provide some insight on how to accomplish this...
http://kapo-cpp.blogspot.com/2008/01/gradients-in-cairo.html
the only problem is that when you draw a mesh its usually a series of triangles, and not a rect like in the example above.
out of interest, would the priority to be either:
Hi Elliot!
Right now, the priority would be draw per vertex color.
Any update on this issue? or a workaround to save colors from a ofMesh to a pdf?
When attempting to render a mesh to a PDF the ofCairoRender does not output a filled mesh, thus the PDF output looks empty.
If you open the file in illustrator you'll see the paths, there but with no stroke or fill.
When I dug into the issue a bit further I realized that Cairo isn't capable of rendering shapes with per vertex colors easily...