Re: cairo-1.13 finally opens

Bill Spitzak <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Krzysztof Kosiński wrote:

>> Inset shadow

> Why not:
> cairo_fill_preserve(cr);
> cairo_clip_preserve(cr);
> cairo_set_blur(...);
> cairo_set_source(...); // change shadow color
> cairo_fill(cr);

The path/mask has to be inverted as well so the color is put against the 
edges, not in the middle. This can be done either before or after the blur.

> This also allows patterned shadows, which are not possible under your approach.

But I think you have the right approach.
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.