[cairo] How can I draw this? (without blur hopefully)

Benjamin Otte otte at redhat.com
Wed Jun 2 03:48:19 PDT 2010


I'd probably try to solve this with either constructing a suitable mask
and using cairo_mask() or by drawing it in multiple passes with
appropriate clipping.

You could just look at how the image was drawn originally to get
inspiration, like look at the SVG - unless someone did it pixel-wise in
the GIMP. Then tell them to use Inkscape next time ;)

Benjamin


On Wed, 2010-06-02 at 11:42 +0200, Andrea Cimitan wrote:
> As you can see in the first button1 button, the dark gradient seems to
> stop before reaching the left and right edges of the button itself,
> likeif there was a blur or a glow outside it.
> I would like to draw that style with cairo, though I don't know if
> there's a real way to do it :)
> Any help? :)
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo




More information about the cairo mailing list