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
823 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Rectangle 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.Rectangle(new Point(50, 50), new Size(100, 50));
  12. path.style = {
  13. fillColor: 'white',
  14. strokeColor: 'black'
  15. };
  16. var copy = path.clone();
  17. copy.strokeColor = 'red';
  18. copy.rotate(-45);
  19. copy.scale(0.5);
  20. document.body.appendChild(project.exportSVG());
  21. </script>
  22. </head>
  23. <body>
  24. <canvas id="canvas" width="500" height="500"></canvas>
  25. </body>
  26. </html>