CGPathWriterTest.PathDataCubicBezierCommands2.svg 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" standalone="no"?>
  2. <!-- http://www.w3.org/TR/SVG11/paths.html#PathDataCubicBezierCommands -->
  3. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  4. "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  5. <svg width="5cm" height="4cm" viewBox="0 0 500 400"
  6. xmlns="http://www.w3.org/2000/svg" version="1.1">
  7. <title>Example cubic01- cubic Bézier commands in path data</title>
  8. <desc>Picture showing a simple example of path data
  9. using both a "C" and an "S" command,
  10. along with annotations showing the control points
  11. and end points</desc>
  12. <style type="text/css"><![CDATA[
  13. .Border { fill:none; stroke:blue; stroke-width:1 }
  14. .Connect { fill:none; stroke:#888888; stroke-width:2 }
  15. .SamplePath { fill:none; stroke:red; stroke-width:5 }
  16. .EndPoint { fill:none; stroke:#888888; stroke-width:2 }
  17. .CtlPoint { fill:#888888; stroke:none }
  18. .AutoCtlPoint { fill:none; stroke:blue; stroke-width:4 }
  19. .Label { font-size:22; font-family:Verdana }
  20. ]]></style>
  21. <rect class="Border" x="1" y="1" width="498" height="398" />
  22. <path class="SamplePath" d="M100,200 L250,200
  23. S400,300 400,200" />
  24. <text class="Label" x="25" y="70">M100,200 L250,200</text>
  25. <text class="Label" x="325" y="350"
  26. style="text-anchor:middle">S400,300 400,200</text>
  27. </svg>