[cairo] How can I draw this? (without blur hopefully)
Andrea Cimitan
andrea.cimitan at gmail.com
Thu Jun 3 11:10:53 PDT 2010
2010/6/3 David Björkevik <david at bjorkevik.se>:
> 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
> --
Yeah, but the question is how to draw 1) "button gradient background" :)
It's not a simple linea gradient... it is smooth on the side edges :\
(that's why it's pretty)
--
Andrea Cimitan - http://www.cimitan.com
More information about the cairo
mailing list