[cairo] Re: Filling and stroking an object with different color/alpha

Carl Worth cworth at cworth.org
Thu May 4 17:00:01 PDT 2006


On Thu, 04 May 2006 16:54:25 -0700, Carl Worth wrote:
>
> 	blue = cairo_pattern_create_rgba (0.0, 0.0, 1.0, 0.8);
> 	red = cairo_pattern_create_rgba (1.0, 0.0, 0.0, 0.);

Oops. A little typo snuck in there between when I compiled this and
when I mailed it. To actually get the result seen in the image I sent,
the second line above should have an alpha value of 0.2, not 0.:

 	red = cairo_pattern_create_rgba (1.0, 0.0, 0.0, 0.2);

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060504/264c2c96/attachment.pgp


More information about the cairo mailing list