[cairo] How can I draw this? (without blur hopefully)
David Björkevik
david at bjorkevik.se
Thu Jun 3 02:05:33 PDT 2010
On 2010-06-02 11:42, 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? :)
I would do:
1. Draw the button gradient background
2. Draw a 1px border inside the outside grey border. This border is
painted with a different gradient (same bottom color as background, but
pure white on tom)
3. Draw the grey outer border
/David
More information about the cairo
mailing list