paper.js/examples/SVG Import/Nested Groups Test.html

79 lines
4.8 KiB
HTML
Raw Permalink Normal View History

2012-09-30 17:51:50 -04:00
<!DOCTYPE html>
<html>
<head>
2014-08-16 13:24:54 -04:00
<meta charset="UTF-8">
<title>Nested Groups Test</title>
<link rel="stylesheet" href="../css/style.css">
<script type="text/javascript" src="../../dist/paper-full.js"></script>
<script type="text/paperscript" canvas="canvas">
project.importSVG(document.getElementById('svg'));
</script>
2012-09-30 17:51:50 -04:00
</head>
2013-02-12 18:08:48 -05:00
<body>
2014-08-16 13:24:54 -04:00
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="500" id="svg">
<g>
<circle cx="25" cy="25" r="20" style="fill:orange;" id="circle" />
<g>
<circle cx="75" cy="25" r="20" style="fill:red;" id="circle" />
<g>
<circle cx="125" cy="25" r="20" style="fill:pink;" id="circle" />
<g>
<circle cx="175" cy="25" r="20" style="fill:blue;" id="circle" />
<g>
<circle cx="225" cy="25" r="20" style="fill:green;" id="circle" />
<g>
<circle cx="275" cy="25" r="20" style="fill:purple;" id="circle" />
<g>
<circle cx="25" cy="75" r="20" style="fill:black;" id="circle" />
<g>
<circle cx="75" cy="75" r="20" style="fill:indigo;" id="circle" />
<g>
<circle cx="125" cy="75" r="20" style="fill:gold;" id="circle" />
<g>
<circle cx="175" cy="75" r="20" style="fill:brown;" id="circle" />
<g>
<circle cx="225" cy="75" r="20" style="fill:darkred;" id="circle" />
<g>
<circle cx="275" cy="75" r="20" style="fill:darkgreen;" id="circle" />
<g>
<circle cx="25" cy="125" r="20" style="fill:darkgrey;" id="circle" />
<g>
<circle cx="75" cy="125" r="20" style="fill:violet;" id="circle" />
<g>
<circle cx="125" cy="125" r="20" style="fill:yellow;" id="circle" />
<g>
<circle cx="175" cy="125" r="20" style="fill:lightblue;" id="circle" />
<g>
<circle cx="225" cy="125" r="20" style="fill:lightgreen;" id="circle" />
<g>
<circle cx="275" cy="125" r="20" style="fill:darkblue;" id="circle" />
<g>
<circle cx="25" cy="175" r="20" style="fill:darkorange;" id="circle" />
<g>
<circle cx="75" cy="175" r="20" style="fill:lawngreen;" id="circle" />
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
2014-08-16 13:24:54 -04:00
</svg>
<canvas id="canvas" width="500" height="500"></canvas>
2012-09-30 17:51:50 -04:00
</body>
</html>