ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > SVG > Path > path-curves-BE-03


File: path-curves-BE-03
Author: Lofton Henderson
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
descid |
gid | style |
pathd | id | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textstyle | x | y |
titleid |

Source

<svg id="svg-root" width="450" height="450" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
     <title id="test-title">path-curves-BE-03</title>
     <desc id="test-desc">Test that the viewer has the basic capability to handle the 'path' element and data (d) attribute in combination with the quadratic Bezier curveto commands, both regular and shorthand/smooth forms - Q, q, T, t (along with Mm and Zz).</desc>
     <g id="test-body-content">
          <text style="font-family:Helvetica;font-size:12;" x="120" y="14">Quadric bezier curves drawn with commands:</text>
          <path id="Bez_MQMqz" style="fill:none;stroke:#0000FF;stroke-width:3;" d=" M 15 20 Q 30 120 130 30 M 180 80 q -75 -100 -163 -60 z "/>
          <text style="font-family:Helvetica;font-size:12;" x="75" y="90">M, Q, M, q, z</text>
          <rect x="13" y="18" width="4" height="4" style="fill:#00C000;stroke:none;"/>
          <rect x="128" y="28" width="4" height="4" style="fill:#00C000;stroke:none;"/>
          <rect x="178" y="78" width="4" height="4" style="fill:#00C000;stroke:none;"/>
          <rect x="15" y="18" width="4" height="4" style="fill:#00C000;stroke:none;"/>
          <path id="Bez_fill_MQzmqz" style="fill:#FFFF00;stroke:#CF0000;" d=" m 350 130 q -100 -80 50 -120 z m 70 0 q 50 -150 -80 -90 Z "/>
          <text style="font-family:Helvetica;font-size:12;" x="330" y="150">m, q, z, m, q, z</text>
          <rect x="348" y="128" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="398" y="8" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="418" y="128" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="338" y="38" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <path id="Bez_stroke_MQz" style="fill:none;stroke:#00FFFF;" d=" M 215 115 Q 225 0 295 45 Z "/>
          <text style="font-family:Helvetica;font-size:12;" x="180" y="45">M, Q, Z</text>
          <rect x="213" y="113" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="293" y="43" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <path id="Tri_MQTQz" style="fill:#00C000;stroke:#000000;" d=" M 200 200 Q 250 300 300 200 T 250 150 Q 120 120 200 200 z "/>
          <text style="font-family:Helvetica;font-size:12;" x="300" y="220">M, Q, T, Q, z</text>
          <rect x="198" y="198" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="298" y="198" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="248" y="148" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="198" y="198" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <path id="Inv_V_MCcZ" style="fill:#CF0000;stroke:none;" d=" M 60 100 Q -40 150 60 200 Q 160 150 60 100 z "/>
          <text style="font-family:Helvetica;font-size:12;" x="75" y="210">M, Q, Q, z</text>
          <rect x="58" y="98" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="58" y="198" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="58" y="98" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <path id="Sin_Mqttttz" style="fill:none;stroke:#FF0000;" d=" M 15 320 q 25 -100 50 0 t 50 0 t 50 0 t 50 0 t 50 0 z "/>
          <text style="font-family:Helvetica;font-size:12;" x="15" y="260">M, q, t, t, t, t, z</text>
          <rect x="13" y="318" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="63" y="318" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="113" y="318" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="163" y="318" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="213" y="318" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <rect x="263" y="318" width="4" height="4" style="fill:#0000FF;stroke:none;"/>
          <path id="Dbl_spd_MCcZ" style="fill:#0000C0;stroke:#00CF00;stroke-width:2;" d=" M 350 300 q -100 50 0 50 Q 250 350 350 400 q 100 -50 0 -50 Q 450 350 350 300 z "/>
          <text style="font-family:Helvetica;font-size:12;" x="310" y="420">M, q, Q, q, Q, z</text>
          <rect x="348" y="298" width="4" height="4" style="fill:#FF0000;stroke:none;"/>
          <rect x="348" y="348" width="4" height="4" style="fill:#FF0000;stroke:none;"/>
          <rect x="348" y="398" width="4" height="4" style="fill:#FF0000;stroke:none;"/>
          <rect x="348" y="348" width="4" height="4" style="fill:#FF0000;stroke:none;"/>
          <rect x="348" y="298" width="4" height="4" style="fill:#FF0000;stroke:none;"/>
     </g>
     <g id="test-legend" style="fill:black;font-family:Helvetica;font-size:10;">
          <rect x="10" y="390" width="275" height="50" style="fill:none;stroke:#000000;"/>
          <path style="fill:none;stroke:#000000;" d="M10 405 h275 M205 405 v35 M10 426 h195 M205 422 h80"/>
          <text x="25" y="401">Scalable Vector Graphics (SVG) Conformance Suite</text>
          <a xlink:href="copyright-documents-19990405.html">
               <text x="12" y="437" style="fill:blue;">Copyright 2000 W3C. All Rights Reserved.</text>
          </a>
          <text style="font-size:12;" x="35" y="420">path-curves-BE-03</text>
          <text style="font-size:10;" x="210" y="417">$Revision: 1.1 $</text>
          <text style="font-size:10;" x="210" y="435">Release 2.0</text>
          <rect id="test-frame" x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
     </g>
</svg>



Sponsored links: Domain Names, VoIP Internettelefonie, DSL, SDSL, ADSL, UNLIMITED Web Hosting by HostDepartment, conference call service, answering service