[cairo] MeshGradient question

Andrea Canciani ranma42 at gmail.com
Sat Apr 21 00:49:27 PDT 2012

On Sat, Apr 21, 2012 at 9:44 AM, Travis Griggs <travisgriggs at gmail.com>wrote:

> I'm playing with the mesh gradient stuff in 1.12.0. I'm drawing something
> like a spider plot, using mesh triangles between each arm. It's pretty cool
> that I can do this. One thing that puzzles me, is that the edges of the
> patches don't appear to be anti-aliased. Is that to be expected? I'm
> drawing to an ImageSurface, and then drawing to the screen. A screen shot
> of what one looks like is attached. If one zooms in on it, one can see the
> hard jagged lines at the transitions to black. Is this to be expected?

Yes, that is expected.
Gradients (linear, radial, mesh) are not supersampled or antialiased in any
way, hence they can show jagged transitions in high-contrast areas.
You might want to render at a higher resolution and/or downscale the image
to hide this issue.


> --
> Travis Griggs
> Objologist
> Light travels faster than sound. This is why some people appear bright
> until you hear them speak...
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120421/32db5734/attachment.htm>

More information about the cairo mailing list