Web Interface For Lite Argus Control modules
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.

32 lines
1.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Circle 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 topLeft = new Point(200, 200);
  12. var size = new Size(150, 100);
  13. var rectangle = new Rectangle(topLeft, size);
  14. var path = new Path.Ellipse(rectangle);
  15. path.fillColor = 'black';
  16. var topLeft = new Point(5, 400);
  17. var size = new Size(100, 50);
  18. var rectangle = new Rectangle(topLeft, size);
  19. var path = new Path.Ellipse(rectangle);
  20. path.fillColor = 'yellow';
  21. var path = new Path.Circle(new Point(50, 50), 25);
  22. path.fillColor = 'red';
  23. document.body.appendChild(project.exportSVG());
  24. </script>
  25. </head>
  26. <body>
  27. <canvas id="canvas" width="500" height="500"></canvas>
  28. </body>
  29. </html>