tkormann 01/10/15 06:11:39 Added: samples/tests/spec/paints radialGradientOrientation.svg Log: add a new test for radial gradient orientation. The result should be validated before commiting any reference image Revision Changes Path 1.1 xml-batik/samples/tests/spec/paints/radialGradientOrientation.svg Index: radialGradientOrientation.svg =================================================================== <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- ========================================================================= --> <!-- Copyright (C) The Apache Software Foundation. All rights reserved. --> <!-- --> <!-- This software is published under the terms of the Apache Software License --> <!-- version 1.1, a copy of which has been included with this distribution in --> <!-- the LICENSE file. --> <!-- ========================================================================= --> <!-- ========================================================================= --> <!-- Test external paint servers --> <!-- --> <!-- @author [EMAIL PROTECTED] --> <!-- @version $Id: radialGradientOrientation.svg,v 1.1 2001/10/15 13:11:39 tkormann Exp $ --> <!-- ========================================================================= --> <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> <svg width="450" height="500" viewBox="0 0 450 500"> <title>Radial Gradient Orientation</title> <!-- ============================================================= --> <!-- Test content --> <!-- ============================================================= --> <g id="testContent"> <text x="225" y="50" class="title">Radial Gradient Orientation</text> <g transform="translate(0 -30)"> <!-- ############################### --> <g id="board" style="fill:none; stroke:black;"> <rect x="75" y="100" width="100" height="20" style="fill:#eee"/> <rect x="175" y="100" width="100" height="20" style="fill:#eee"/> <rect x="275" y="100" width="100" height="20" style="fill:#eee"/> <rect x="75" y="120" width="100" height="50" /> <rect x="175" y="120" width="100" height="50" /> <rect x="275" y="120" width="100" height="50" /> <g transform="translate(0 80)"> <rect x="75" y="100" width="100" height="20" style="fill:#eee"/> <rect x="175" y="100" width="100" height="20" style="fill:#eee"/> <rect x="275" y="100" width="100" height="20" style="fill:#eee"/> <rect x="75" y="120" width="100" height="50" /> <rect x="175" y="120" width="100" height="50" /> <rect x="275" y="120" width="100" height="50" /> </g> <g transform="translate(0 160)"> <rect x="75" y="100" width="100" height="20" style="fill:#eee"/> <rect x="175" y="100" width="100" height="20" style="fill:#eee"/> <rect x="275" y="100" width="100" height="20" style="fill:#eee"/> <rect x="75" y="120" width="100" height="50" /> <rect x="175" y="120" width="100" height="50" /> <rect x="275" y="120" width="100" height="50" /> </g> <g transform="translate(0 240)"> <rect x="175" y="100" width="100" height="20" style="fill:#eee"/> <rect x="175" y="120" width="100" height="50" /> </g> <g style="stroke:none; fill:black; text-anchor:middle; font-size:12"> <text x="125" y="114">cx = cy / fx < fy</text> <text x="225" y="114">cx = cy / fx > fy</text> <text x="325" y="114">cx = cy / fx = fy</text> <g transform="translate(0 80)"> <text x="125" y="114">cx < cy / fx < fy</text> <text x="225" y="114">cx < cy / fx > fy</text> <text x="325" y="114">cx < cy / fx = fy</text> </g> <g transform="translate(0 160)"> <text x="125" y="114">cx > cy / fx < fy</text> <text x="225" y="114">cx > cy / fx > fy</text> <text x="325" y="114">cx > cy / fx = fy</text> </g> <g transform="translate(0 240)"> <text x="225" y="114">r = 0</text> </g> </g> </g> <!-- ############################### --> <defs> <radialGradient id="genericGrad"> <stop style="stop-color:crimson" offset="0" /> <stop style="stop-color:orange" offset=".5" /> <stop style="stop-color:gold" offset="1" /> </radialGradient> <radialGradient id="grad1" cx=".5" cy=".5" fx="0" fy="1" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad2" cx=".5" cy=".5" fx="1" fy="0" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad3" cx=".5" cy=".5" fx=".5" fy=".5" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad4" cx="0" cy="1" fx="0" fy="1" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad5" cx="0" cy="1" fx="1" fy="0" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad6" cx="0" cy="1" fx=".5" fy=".5" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad7" cx="1" cy="0" fx="0" fy="1" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad8" cx="1" cy="0" fx="1" fy="0" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad9" cx="1" cy="0" fx=".5" fy=".5" r=".5" xlink:href="#genericGrad" /> <radialGradient id="grad10" r="0" xlink:href="#genericGrad" /> </defs> <circle cx="125" cy="145" r="20" style="fill:url(#grad1)"/> <circle cx="225" cy="145" r="20" style="fill:url(#grad2)"/> <circle cx="325" cy="145" r="20" style="fill:url(#grad3)"/> <g transform="translate(0 80)"> <circle cx="125" cy="145" r="20" style="fill:url(#grad4)"/> <circle cx="225" cy="145" r="20" style="fill:url(#grad5)"/> <circle cx="325" cy="145" r="20" style="fill:url(#grad6)"/> </g> <g transform="translate(0 160)"> <circle cx="125" cy="145" r="20" style="fill:url(#grad7)"/> <circle cx="225" cy="145" r="20" style="fill:url(#grad8)"/> <circle cx="325" cy="145" r="20" style="fill:url(#grad9)"/> </g> <g transform="translate(0 240)"> <circle cx="225" cy="145" r="20" style="fill:url(#grad10)"/> </g> </g> </g> <!-- ============================================================= --> <!-- Batik sample mark --> <!-- ============================================================= --> <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> </svg>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]