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.

29 lines
911 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Transform 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 circlePath = new Path.Circle(new Point(280, 100), 25);
  12. circlePath.strokeColor = 'black';
  13. circlePath.fillColor = 'white';
  14. var clones = 30;
  15. var angle = 360 / clones;
  16. for (var i = 0; i < clones; i++) {
  17. var clonedPath = circlePath.clone();
  18. clonedPath.rotate(angle * i, circlePath.bounds.topLeft);
  19. };
  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>