| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| |
| <!--======================================================================--> |
| <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, Institut National de Recherche en =--> |
| <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <!--======================================================================--> |
| <!-- --> |
| <!-- filters-transfer-BE-04.svg --> |
| <!-- renamed for 1.1 suite to filters-comptran-01-f.svg --> |
| <!-- --> |
| <!-- Test which verifies the basic facilities of feComponentTransfer. --> |
| <!-- --> |
| <!-- Author : Jon Ferraiolo 03-Apr-2000 --> |
| <!-- Revised for 1.1 : Mike Bultrowicz, 4 February 2002 --> |
| <!-- --> |
| <!-- History: --> |
| <!-- 04-Apr-2000, JF: Serial#1 created. --> |
| <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
| <!-- 16-Aug-2000, LH="rename" ser#2. --> |
| <!-- --> |
| <!--======================================================================--> |
| <!--======================================================================--> |
| <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
| <!--= log messages, and therefore is no longer in the preceding preamble.=--> |
| <!--======================================================================--> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="480" height="360"> |
| <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
| <OperatorScript> |
| <Paragraph> |
| Test which verifies the basic facilities of |
| feComponentTransfer. |
| </Paragraph> |
| <Paragraph> |
| This test uses the following elements : a nested <svg> |
| with a viewBox attribute, <linearGradient>, <filter>, |
| <feComponentTransfer> |
| </Paragraph> |
| <Paragraph> |
| The test case shows four rectangles filled with a |
| gradient showing the effects of feComponentTransfer: an |
| identity function acting as a reference, use of the |
| feComponentTransfer table option, use of the |
| feComponentTransfer linear option, and use of the |
| feComponentTransfer gamma option. |
| </Paragraph> |
| <Paragraph> |
| The test is somewhat self-explanatory as the strings |
| document the type of feComponentTransfer operation that |
| is being used. |
| </Paragraph> |
| </OperatorScript> |
| </SVGTestCase> |
| <title id="test-title">filters-comptran-01-f</title> |
| <desc id="test-desc">Test which verifies the basic facilities of feComponentTransfer.</desc> |
| <!--======================================================================--> |
| <!--Content of Test Case follows... =====================--> |
| <!--======================================================================--> |
| <g id="test-body-content"> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="35" y="50" width="400" height="200" viewBox="0 0 800 400"> |
| <title>Example feComponentTransfer - Examples of feComponentTransfer operations</title> |
| <desc>Four rectangles filled with a gradient showing the effects of feComponentTransfer: an identity function acting as a reference, use of the feComponentTransfer table option, use of the feComponentTransfer linear option, and use of the feComponentTransfer gamma option.</desc> |
| <defs> |
| <linearGradient id="MyGradient" gradientUnits="userSpaceOnUse" x1="100" y1="0" x2="600" y2="0"> |
| <stop offset="0" stop-color="#ff0000" /> |
| <stop offset=".33" stop-color="#00ff00" /> |
| <stop offset=".67" stop-color="#0000ff" /> |
| <stop offset="1" stop-color="#000000" /> |
| </linearGradient> |
| <filter id="Identity" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feComponentTransfer> |
| <feFuncR type="identity"/> |
| <feFuncG type="identity"/> |
| <feFuncB type="identity"/> |
| <feFuncA type="identity"/> |
| </feComponentTransfer> |
| </filter> |
| <filter id="Table" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feComponentTransfer> |
| <feFuncR type="table" tableValues="0 0 1 1"/> |
| <feFuncG type="table" tableValues="1 1 0 0"/> |
| <feFuncB type="table" tableValues="0 1 1 0"/> |
| </feComponentTransfer> |
| </filter> |
| <filter id="Linear" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feComponentTransfer> |
| <feFuncR type="linear" slope=".5" intercept=".25"/> |
| <feFuncG type="linear" slope=".5" intercept="0"/> |
| <feFuncB type="linear" slope=".5" intercept=".5"/> |
| </feComponentTransfer> |
| </filter> |
| <filter id="Gamma" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feComponentTransfer> |
| <feFuncR type="gamma" amplitude="2" exponent="5" offset="0"/> |
| <feFuncG type="gamma" amplitude="2" exponent="3" offset="0"/> |
| <feFuncB type="gamma" amplitude="2" exponent="1" offset="0"/> |
| </feComponentTransfer> |
| </filter> |
| </defs> |
| <rect fill="none" stroke="blue" x="1" y="1" width="798" height="398"/> |
| <g font-size="25" font-family="Verdana" > |
| <rect fill="none" stroke="blue" x="1" y="1" width="798" height="398"/> |
| <rect x="100" y="20" width="500" height="40" fill="url(#MyGradient)" filter="url(#Identity)" /> |
| <text x="100" y="85">type="identity"</text> |
| <rect x="100" y="120" width="500" height="40" fill="url(#MyGradient)" filter="url(#Table)" /> |
| <text x="100" y="185">type="table"</text> |
| <rect x="100" y="220" width="500" height="40" fill="url(#MyGradient)" filter="url(#Linear)" /> |
| <text x="100" y="285">type="linear" slope=".5" intercepts:.25/0/.5</text> |
| <rect x="100" y="320" width="500" height="40" fill="url(#MyGradient)" filter="url(#Gamma)" /> |
| <text x="100" y="385">type="gamma" amplitude="2" exponents:5/3/1</text> |
| </g> |
| </svg> |
| </g> |
| <!--======================================================================--> |
| <!--Legend and frame: Title, suite and SVG document serialization====--> |
| <!--======================================================================--> |
| <g id="test-legend" fill="black" font-family="Helvetica" font-size="10"> |
| <rect x="10" y="300" width="275" height="50" fill="none" stroke="#000000"/> |
| <path fill="none" stroke="#000000" d="M10 315 h275 M205 315 v35 M10 336 h195 M205 332 h80"/> |
| <text x="25" y="311">Scalable Vector Graphics (SVG) v1.1 Conformance Suite</text> |
| <a xlink:href="copyright-documents-19990405.html"> |
| <text x="12" y="347" fill="blue" >Copyright 2002 W3C. All Rights Reserved.</text> |
| </a> |
| <text font-size="12" x="35" y="330">filters-comptran-01</text> |
| <text font-size="10" x="210" y="327">$Revision: 1.1 $</text> |
| <text font-size="10" x="210" y="345">Release 1.0</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </g> |
| </svg> |