paper.js/examples/SVG Import/Transform Testing.html

22 lines
768 B
HTML
Raw Normal View History

2012-09-30 17:51:50 -04:00
<!DOCTYPE html>
<html>
<head>
2013-06-02 16:41:10 -04:00
<meta charset="UTF-8">
2012-11-08 09:25:26 -05:00
<title>Transform Testing</title>
2012-09-30 17:51:50 -04:00
<link rel="stylesheet" href="../css/style.css">
<script type="text/javascript" src="../../dist/paper.js"></script>
<script type="text/paperscript" canvas="canvas">
2013-04-23 10:19:08 -04:00
project.importSVG(document.getElementById('svg'));
2012-09-30 17:51:50 -04:00
</script>
</head>
2013-02-12 18:08:48 -05:00
<body>
2013-02-26 02:49:56 -05:00
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="500" id="svg">
2012-09-30 17:51:50 -04:00
<g transform="scale(5) translate(15, 15) rotate(20) skewX(20) skewY(5)" >
<rect x="10" y="10" width="5" height="5" fill="firebrick" />
<circle r="10" fill="seagreen" stroke="blue"/>
<rect x="5" y="5" width="12" height="2" fill="grey" stroke="silver"/>
2012-09-30 17:51:50 -04:00
</g>
</svg>
2013-02-26 02:49:56 -05:00
<canvas id="canvas" width="500" height="500"></canvas>
2012-09-30 17:51:50 -04:00
</body>
</html>