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:
744 bytes
|
Line | |
---|
1 | <!DOCTYPE html>
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta charset="UTF-8">
|
---|
5 | <title>Empty Path 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 | var path = new Path();
|
---|
10 | path.strokeColor = 'black';
|
---|
11 | path.add(new Point(30, 30));
|
---|
12 | path.add(new Point(100, 100));
|
---|
13 |
|
---|
14 | var segments = [new Point(30, 90), new Point(100, 150)];
|
---|
15 | var path2 = new Path(segments);
|
---|
16 | path2.strokeColor = 'yellow';
|
---|
17 |
|
---|
18 | var path3 = new Path();
|
---|
19 |
|
---|
20 | document.getElementById('svg').appendChild(project.exportSVG());
|
---|
21 | </script>
|
---|
22 | </head>
|
---|
23 | <body>
|
---|
24 | <canvas id="canvas" width="500" height="500"></canvas>
|
---|
25 | <svg id="svg" width="500" height="500"></svg>
|
---|
26 | </body>
|
---|
27 | </html> |
---|
Note:
See
TracBrowser
for help on using the repository browser.