Re: Seed 514 in feTurbulence causes squares
| Newsgroups | gmane.text.xml.svg.devel |
|---|---|
| Message-ID | <[email protected]> |
It was the algorithm. At line 50 of the reference code there needs to be a check to make sure that both [k][i][0] and [k][i][1] are not zero.
fix for Batik
if (u == 0 && v == 0) u=v=1;
or the fix for my JS port of the spec code
if (fGradient[k][i][0] == 0 && fGradient[k][i][1] == 0)
{
fGradient[k][i][0] = 1;
fGradient[k][i][1] = 1;
}