[cairo] Path Gradients

MenTaLguY mental at rydia.net
Tue Jan 22 13:35:38 PST 2008

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


More information about the cairo mailing list