mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
22 lines
No EOL
813 B
HTML
22 lines
No EOL
813 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Transform Testing</title>
|
|
<link rel="stylesheet" href="../css/style.css">
|
|
<script type="text/javascript" src="../../dist/paper.js"></script>
|
|
<script type="text/paperscript" canvas="canvas">
|
|
project.importSvg(document.getElementById('svg'));
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="500" id="svg">
|
|
<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="gray" stroke="silver"/>
|
|
</g>
|
|
</svg>
|
|
<canvas id="canvas" width="500" height="500"></canvas>
|
|
</body>
|
|
</html> |