[cairo] Problems with gradients...

David Reveman c99drn at cs.umu.se
Tue Apr 20 23:57:32 PDT 2004


On Tue, 2004-04-20 at 22:42 +0200, benoit.vautrin at free.fr wrote:
> Hi ! 
>  
> Adapting a example code from David Reveman, I've made a simple test case which 
> shows up some bugs in gradients patterns... 
>  
> http://benoit.vautrin.free.fr/gradient-scale.c 
> 
> Compile, execute and resize the window... 
>  
> 1- Scaling problems: 
>  
> Gradients are scaled strangely (count the number of stripes when resizing...) 
> but not on all paths... 
>  
> 2- Proportions: 
>  
> When changing the width/heigh ratio, just transforming the gradient extend or 
> vector or whatever you call it is not correct: 
> Even if it is right when the ratio is the same as the original, it doesn't 
> work in other cases... 
>  
> 3- Image backend: 
>  
> Gradients are beautifull but from time to time don't fill the whole shape... 
>  
> There are other issues but I'm still trying to find simple test cases to show 
> them. 

The current point is not handled correctly by cairo's pattern interface.
If current point is not 0,0 patterns will be generated incorrectly. I'll
try to get this bug fixed as soon as possible. I know that this is the
case for at least problem "3-". I wouldn't be surprised if problems "1-"
and "2-" are also related to this.

Thanks for reporting the problems.

- David

-- 
David Reveman <c99drn at cs.umu.se>





More information about the cairo mailing list