[cairo] plotting a donut in cairo

Gerdus van Zyl gerdusvanzyl at gmail.com
Tue Nov 18 23:48:49 PST 2008


The way you described it sounds very suspect, so code would be
appreciated. You could also try to first draw and fill the larger
circle and then draw and fill the smaller circle using the background
color or using the cairo_clear operator.

~Gerdus

On Wed, Nov 19, 2008 at 7:30 AM, Charles سمير Doutriaux
<doutriaux1 at llnl.gov> wrote:
> Hello,
>
> I'm having a problem on cairo plotting a "Donut".
>
> The way i'm rendering it on my X surface is that basicaly rawing the
> outside circle and then going inside and drawing the inside circle,
> Then I fill this.
>
> On my X it works great (but i think this section is still using xgks
> not cairo)
>
> ON cairo output, the whole thing is filled (png and postscript at least)
>
> I was wondering what the best way would be to fx this? Leave a tiny
> little space between the first and ast ponit of the outter circle?
>
> Any suggestion welcome.
>
> I can send some sample code to if you want.
>
> C.
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list