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.

19 lines
640 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Compound Path</title>
  6. <link rel="stylesheet" href="../css/style.css">
  7. <script type="text/javascript" src="../../dist/paper-full.js"></script>
  8. <script type="text/paperscript" canvas="canvas">
  9. project.currentStyle.fillColor = 'black';
  10. var path1 = new Path.Rectangle([200, 200], [100, 100]);
  11. var path2 = new Path.Rectangle([50, 50], [200, 200]);
  12. var path3 = new Path.Rectangle([0, 0], [400, 400]);
  13. new CompoundPath(path1, path2, path3);
  14. </script>
  15. </head>
  16. <body>
  17. <canvas id="canvas" resize></canvas>
  18. </body>
  19. </html>