[Cairo] Gradients

Carl Worth cworth at east.isi.edu
Sat Oct 4 09:28:59 PDT 2003

On Oct 4, Thomas Hunger wrote:
 > I did a linear gradient using cairo the way described in the OLS paper. Now I 
 > wonder if I want to do complex gradients, like interpolating between 
 > different "color-points" or a plain radial one, will I always have to use 
 > surfaces which I compose myself or are there already some thoughts on 
 > different ways to accomplish this?

You've noticed the same things we have. The gradient technique we
showed at OLS is a cute hack, but it can't do much beyond linear

Keith and I have been looking at the PostScript support for
function-based shadings. We should be able to figure out a way to do
something similar.

As always, contributions are welcome.


More information about the cairo mailing list