| 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="400px" height="120px" version="1.1" |
| 5 |
xmlns="http://www.w3.org/2000/svg"> |
| 6 |
<desc>Example Skew - Show effects of skewX and skewY</desc> |
| 7 |
<g fill="none" stroke="black" stroke-width="3" > |
| 8 |
<!-- Draw the axes of the original coordinate system --> |
| 9 |
<line x1="0" y1="1.5" x2="400" y2="1.5" /> |
| 10 |
<line x1="1.5" y1="0" x2="1.5" y2="120" /> |
| 11 |
</g> |
| 12 |
<!-- Establish a new coordinate system whose origin is at (30,30) |
| 13 |
in the initial coord. system and which is skewed in X by 30 degrees. --> |
| 14 |
<g transform="translate(30,30)"> |
| 15 |
<g transform="skewX(30)"> |
| 16 |
<g fill="none" stroke="red" stroke-width="3" > |
| 17 |
<line x1="0" y1="0" x2="50" y2="0" /> |
| 18 |
<line x1="0" y1="0" x2="0" y2="50" /> |
| 19 |
</g> |
| 20 |
<text x="0" y="0" font-size="20" font-family="Liberation Sans" fill="blue" > |
| 21 |
ABC (skewX) |
| 22 |
</text> |
| 23 |
</g> |
| 24 |
</g> |
| 25 |
<!-- Establish a new coordinate system whose origin is at (200,30) |
| 26 |
in the initial coord. system and which is skewed in Y by 30 degrees. --> |
| 27 |
<g transform="translate(200,30)"> |
| 28 |
<g transform="skewY(30)"> |
| 29 |
<g fill="none" stroke="red" stroke-width="3" > |
| 30 |
<line x1="0" y1="0" x2="50" y2="0" /> |
| 31 |
<line x1="0" y1="0" x2="0" y2="50" /> |
| 32 |
</g> |
| 33 |
<text x="0" y="0" font-size="20" font-family="Liberation Sans" fill="blue" > |
| 34 |
ABC (skewY) |
| 35 |
</text> |
| 36 |
</g> |
| 37 |
</g> |
| 38 |
</svg> |