source: main/trunk/model-sites-dev/von-sparql/js/paper/examples/SVG Import/Circle and Ellipse Testing.html@ 28914

Last change on this file since 28914 was 28914, checked in by ak19, 10 years ago

Supporting javascript libraries and bespoke code written by Steffan to support the von-sparql user interface

File size: 1.3 KB
Line 
1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="UTF-8">
5 <title>Circle and Ellipse Testing</title>
6 <link rel="stylesheet" href="../css/style.css">
7 <script type="text/javascript" src="../../dist/paper.js"></script>
8 <script type="text/paperscript" canvas="canvas">
9 project.importSVG(document.getElementById('svg'));
10 </script>
11</head>
12<body>
13 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="1000" id="svg">
14 <circle cx="40" cy="300" r="20" style="fill:orange;stroke:yellow;stroke-width:2px;stroke-dasharray:3px" id="circle1" />
15 <circle cx="60" cy="350" r="30" style="fill:red;stroke:black;stroke-width:5" id="circle2" />
16 <circle cx="160" cy="400" r="60" style="fill:blue;" id="circle3" />
17 <ellipse cx="240" cy="100" rx="220" ry="30" style="fill:purple" id="ellipse1"/>
18 <ellipse cx="220" cy="70" rx="190" ry="20" style="fill:lime" id="ellipse2"/>
19 <ellipse cx="210" cy="45" rx="170" ry="15" style="fill:yellow" id="ellipse3"/>
20 <ellipse cx="240" cy="175" rx="220" ry="30" style="fill:yellow" id="ellipse4"/>
21 <ellipse cx="220" cy="175" rx="190" ry="20" style="fill:white" id="ellipse5"/>
22 <ellipse cx="300" cy="255" rx="100" ry="50" style="fill:yellow;stroke:purple;stroke-width:2" id="ellipse6"/>
23 </svg>
24 <canvas id="canvas" width="500" height="1000"></canvas>
25</body>
26</html>
Note: See TracBrowser for help on using the repository browser.