[cairo] Path Gradients

Bobby Salazar bobby8934 at inbox.com
Tue Jan 22 13:57:26 PST 2008


Ok, but then that raises the question of is it inefficient to use these coons patches to do that kind of gradient? Or would it be better off implemented as yet another specialized gradient type?

> -----Original Message-----
> From: mental at rydia.net
> Sent: Tue, 22 Jan 2008 13:35:38 -0800
> To: bobby8934 at inbox.com
> Subject: Re: [cairo] Path Gradients
> 
> On Tue, 22 Jan 2008 13:15:51 -0800, Bobby Salazar <bobby8934 at inbox.com>
> wrote:
>> However, there is one situation (that is my main interest in the path
>> gradient) that I cannot figure out how to map to these "Type 6" gradient
>> meshes. This situation is where you have a path, and you want to make a
>> gradient from an abitrary "center point" out to the edges, with color
>> stops along the way. Can you think of an easy way to use a "Type 6"
>> gradient mesh to reproduce the gradients seen in these images:
>> 
>> http://www.bobpowell.net/pgb.ht4.jpg
>> http://www.bobpowell.net/pgb.ht6.jpg
> 
> There isn't an "easy" way to do it; there are various standard ways
> of algorithmically approximating an arbitrary 2d function with coons
> patches though.  The important thing is that such an approximation is
> *possible*.
> 
> -mental

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!


More information about the cairo mailing list