| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" |
| 3 |
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| 4 |
<svg width="12cm" height="6cm" viewBox="0 0 1200 600" |
| 5 |
xmlns="http://www.w3.org/2000/svg" version="1.1"> |
| 6 |
<title>Example quad01 - quadratic Bézier commands in path data</title> |
| 7 |
<desc>Picture showing a "Q" a "T" command, |
| 8 |
along with annotations showing the control points |
| 9 |
and end points</desc> |
| 10 |
<rect x="1" y="1" width="1198" height="598" |
| 11 |
fill="none" stroke="blue" stroke-width="1" /> |
| 12 |
|
| 13 |
<path d="M200,300 Q400,50 600,300 T1000,300" |
| 14 |
fill="none" stroke="red" stroke-width="5" /> |
| 15 |
<!-- End points --> |
| 16 |
<g fill="black" > |
| 17 |
<circle cx="200" cy="300" r="10"/> |
| 18 |
<circle cx="600" cy="300" r="10"/> |
| 19 |
<circle cx="1000" cy="300" r="10"/> |
| 20 |
</g> |
| 21 |
<!-- Control points and lines from end points to control points --> |
| 22 |
<g fill="#888888" > |
| 23 |
<circle cx="400" cy="50" r="10"/> |
| 24 |
<circle cx="800" cy="550" r="10"/> |
| 25 |
</g> |
| 26 |
<path d="M200,300 L400,50 L600,300 |
| 27 |
L800,550 L1000,300" |
| 28 |
fill="none" stroke="#888888" stroke-width="2" /> |
| 29 |
</svg> |
| 30 |
|