On Fri, 2009-12-25 at 10:54 +1030, Adrian Johnson wrote:
Joshua A. Andler wrote:
On Fri, 2009-12-25 at 10:07 +1030, Adrian Johnson wrote:
Aaron Spike wrote:
Joshua A. Andler wrote:
On Thu, 2009-12-24 at 08:14 -0600, Aaron Spike wrote:
Color in SVG includes an alpha channel. I've been told that rendering of Coons patch meshes is ambiguous when this is the case. Does this also affect Tensor-product patch meshes?
I'm curious about the ambiguity. Do you recall why that was said? I'm sure it's more technical, but if it works how I imagine it could, it could afford great artistic leverage.
IIRC extreme bends in the control beziers can cause the fill to self overlap. Transparent or semi-transparent colors would allow the deeper parts of the fill to bleed through. And once again, remember that I don't know what I'm talking about. :-)
There is an experimental implementation of mesh gradients for cairo at: http://cgit.freedesktop.org/~ajohnson/cairo/log/?h=mesh
This branch makes it easy to write a few test cases help understand how PDF Type 6 and 7 gradients work.
Some sample output (including self overlapping and transparency) is at: http://people.freedesktop.org/~ajohnson/mesh/
Would you be willing to do one that has both self-overlapping & transparency where the overlapping portions are? I'm not seeing one currently. That would be helpful to seeing how it reacts.
Cheers, Josh
I've added the mesh-gradient-overlap-transp test case.
Thanks! Out of curiosity, are there any plans for integration into head any time in the "near" future or are is there a need for more testing? I think i will give it a compile in the next couple weeks to play with it a little.
Cheers, Josh