Checking out the new GradientImage in 6.4.5-4
Posted: 2008-11-07T16:31:19-07:00
The previous edition of this thread seems to have drifted, so I'm starting a new thread. I'm still curious about the new support for radial and linear gradients. I've been using the SVG below as a test. Until 6.4.5-4, it produced a solid blue oval. In 6.4.5-4 it produces a solid black oval. The last I heard was this:
As before, I'm in no particular hurry for this to work, but I thought I'd check in to make sure I hadn't missed something.what is missing is the finishing touches on the gradient parser that sets the GradientInfo structure with multiple color stops. A fix for this problem is on our to-do list.
Code: Select all
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient id="grey_blue" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
<stop offset="0%" style="stop-color:rgb(200,200,200); stop-opacity:0"/>
<stop offset="100%" style="stop-color:rgb(0,0,255); stop-opacity:1"/>
</radialGradient>
</defs>
<ellipse cx="230" cy="200" rx="110" ry="100" style="fill:url(#grey_blue)"/>
</svg>