[cairo] Path Gradients

Behdad Esfahbod behdad at behdad.org
Fri Jan 4 01:55:43 PST 2008


On Thu, 2008-01-03 at 22:28 -0500, Bill Spitzak wrote:
> 
> In truth this only looks useful to make the same results that Cairo does 
> with radial gradients. Shapes that are not round are pretty useless due 
> to Mach banding (this is the starburst rays you see). However I can 
> certainly see that this is a more convienent way to specify a radial 
> gradient.

Another interesting feature of the path gradients in the links is that
one can also have color stop along the path (that is, along the circle),
not only from the center to the path.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



More information about the cairo mailing list