[cairo] Radii of radial gradients

Keith Packard keithp at keithp.com
Thu Mar 1 20:40:40 PST 2007

On Thu, 2007-03-01 at 10:58 -0800, Carl Worth wrote:

> Keith suggested just forcing the determinant to 0 when it is
> negative. I've implemented that and was quite pleased by the result it
> provides:

I think there's another possible interpretation here; if you consider
the gradient as defining a cone, then you could draw the value of the
final color stop where the determinant is less than zero -- this would
present a solid field 'underneath' the cone. I fear the current solution
will produce discontinuities when the final point accidentally steps
just over the radius of the circle.

keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070301/be1b9941/attachment.pgp

More information about the cairo mailing list