[cairo] Conical gradients with pixman with rotation

Soeren Sandmann sandmann at daimi.au.dk
Thu May 27 18:03:05 PDT 2010


"Marco Wertz" <marco.wertz at gmx.de> writes:

> Good day,
> 
> I've played a little with conical gradients using pixman yesterday but I only got it right when using an angle of 0 (i.e. no rotation). As soon as I create a rotated conical gradient, it doesn't look right. Here is an example of a 45 degree rotated conical gradient:
> 
> http://i45.tinypic.com/2cpq435.png
> 
> I'm using REPEAT_REFLECT as the repeat pattern. Is there a way to get a perfectly symmetrical rotated conical gradient? It should look like this: (created in Corel Draw):
> 
> http://i45.tinypic.com/x0xjef.png

There used to be a bug where pixman would miscalculate the
angle. Maybe that's what you are seeing? That bug is fixed in 0.18.0.


Soren


More information about the cairo mailing list