Hi Jonathan,

Jonathan Watt <[EMAIL PROTECTED]> wrote on 03/15/2006 11:18:47 AM:

> While testing how implementations inherit fx and fy I discovered that 
Batik 
> doesn't seem to render radialGradient elements with these attributes 
correctly. 
> It inherits them fine, but the mapping of stop locations doesn't seem 
quite 
> right. I've got a testcase at:

   This is caused by the clamping of the fx/fy at the edge of the circle.
We currently clam fx/fy at r*.97 In this case that is several pixels
from the edge of the radial gradient circle.  You can't let it get too
close to the edge or the math and gradients go all wonky.  I've
modified the SCALEBACK coef to be .999 instead of .97 and it "gets
the red out".

   I'll run a few examples and see if this causes any problems (I
am a bit surprised the SCALEBACK was so far from 1).

>    http://jwatt.org/svg/tests/grad-radial-fx-cx-vs-inheritance.svg
> 
> if you care to take a look. The hole punched through the gradient should 
line up 
> directly with the green circle (with a little overlap to make sure no 
red shows 
> around the edge).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to