Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
850 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. <!-- IE 9: display inline SVG -->
  8. <meta http-equiv="X-UA-Compatible" content="IE=9">
  9. <script type="text/javascript" src="../../dist/paper-full.js"></script>
  10. <script type="text/paperscript" canvas="canvas">
  11. var path = new Path();
  12. path.strokeColor = 'black';
  13. path.add(new Point(30, 30));
  14. path.add(new Point(100, 100));
  15. var segments = [new Point(30, 90), new Point(100, 150)];
  16. var path2 = new Path(segments);
  17. path2.strokeColor = 'yellow';
  18. var path3 = new Path();
  19. document.body.appendChild(project.exportSVG());
  20. </script>
  21. </head>
  22. <body>
  23. <canvas id="canvas" width="500" height="500"></canvas>
  24. </body>
  25. </html>