| 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="5cm" height="4cm" viewBox="0 0 500 400" |
| 5 |
xmlns="http://www.w3.org/2000/svg" version="1.1"> |
| 6 |
<title>Example cubic01- cubic Bézier commands in path data</title> |
| 7 |
<desc>Picture showing a simple example of path data |
| 8 |
using both a "C" and an "S" command, |
| 9 |
along with annotations showing the control points |
| 10 |
and end points</desc> |
| 11 |
|
| 12 |
<rect fill="none" stroke="blue" stroke-width="1" x="1" y="1" width="498" |
| 13 |
height="398" /> |
| 14 |
<polyline fill="none" stroke="#888888" stroke-width="2" points="100,200 100,100" /> |
| 15 |
<polyline fill="none" stroke="#888888" stroke-width="2" points="250,100 250,200" /> |
| 16 |
<polyline fill="none" stroke="#888888" stroke-width="2" points="250,200 250,300" /> |
| 17 |
<polyline fill="none" stroke="#888888" stroke-width="2" points="400,300 400,200" /> |
| 18 |
<path fill="none" stroke="red" stroke-width="5" |
| 19 |
d="M100,200 C100,100 250,100 250,200 |
| 20 |
S400,300 400,200" /> |
| 21 |
<circle fill="none" stroke="#888888" stroke-width="2" cx="100" cy="200" r="10" /> |
| 22 |
<circle fill="none" stroke="#888888" stroke-width="2" cx="250" cy="200" r="10" /> |
| 23 |
<circle fill="none" stroke="#888888" stroke-width="2" cx="400" cy="200" r="10" /> |
| 24 |
<circle fill="#888888" stroke="none" cx="100" cy="100" r="10" /> |
| 25 |
<circle fill="#888888" stroke="none" cx="250" cy="100" r="10" /> |
| 26 |
<circle fill="#888888" stroke="none" cx="400" cy="300" r="10" /> |
| 27 |
<circle fill="none" stroke="blue" stroke-width="4" cx="250" cy="300" r="9" /> |
| 28 |
<text font-size="22" font-family="Liberation Sans" x="25" |
| 29 |
y="70">M100,200 C100,100 250,100 250,200</text> |
| 30 |
<text font-size="22" font-family="Liberation Sans" x="325" y="350" |
| 31 |
text-anchor="middle">S400,300 400,200</text> |
| 32 |
</svg> |