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.

27 lines
839 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Symbols</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 ellipse = new Path.Ellipse({
  12. from: [0, 0],
  13. to: [200, 100],
  14. fillColor: 'red'
  15. });
  16. var symbol = new SymbolDefinition(ellipse);
  17. var p1 = symbol.place([100, 100]);
  18. p1.rotate(45);
  19. var p2 = symbol.place([300, 200]);
  20. p2.rotate(-30);
  21. document.body.appendChild(project.exportSVG());
  22. </script>
  23. </head>
  24. <body>
  25. <canvas id="canvas" width="500" height="500"></canvas>
  26. </body>
  27. </html>