[cairo] Problems with gradients...

David Reveman c99drn at cs.umu.se
Wed Apr 21 02:44:16 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. 

This patch should fix problem 3.

- David

-- 
David Reveman <c99drn at cs.umu.se>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-pattern-fix.patch
Type: text/x-patch
Size: 5814 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20040421/9ddef257/cairo-pattern-fix.bin


More information about the cairo mailing list