[cairo] Using push/pop_group and cairo_mask for a fading effect

Travis Griggs tgriggs at cincom.com
Thu Oct 19 14:33:59 PDT 2006

On Oct 19, 2006, at 12:01, Carl Worth wrote:

> I think one thing that we haven't had enough of in a very long time on
> this list is people sharing tips and tricks for achieving particular
> effects with cairo.
> A certain 'asabil' came to IRC recently with a pygtk program
> attempting to achieve an effect by which text would fade out at a
> certain point. Here's a mockup that asabil contributed:
> 	http://img218.imageshack.us/img218/1356/cocoonoklx9.png
> I've attached below a little example program that demonstrates one way
> to achieve this effect with cairo, (by using push/pop_group and
> cairo_mask). The results of this program can be seen here:
> 	http://cairographics.org/~cworth/images/faded.png
> I hope that that is helpful for somebody.

Hey. I like this. Alot. Not so much the affect itself. But the "real  
world examplets". Thank you. Would a wiki link of the  
cairographics.org documentation link be a good place to have people  
put this kind of stuff?

Travis Griggs
"Is success the potential of what could be, or the reality of what is?"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/cairo/attachments/20061019/27a33ecf/attachment-0001.html

More information about the cairo mailing list