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.

28 lines
767 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Rounded Rectangle</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. var path;
  10. function onFrame(event) {
  11. if (path)
  12. path.remove();
  13. path = new Path.Rectangle({
  14. radius: Math.abs(Math.sin(event.count / 40)) * 150 + 10,
  15. rectangle: {
  16. size: [300, 300]
  17. },
  18. fillColor: 'black'
  19. });
  20. path.position = view.center;
  21. }
  22. </script>
  23. </head>
  24. <body>
  25. <canvas id="canvas" resize></canvas>
  26. </body>
  27. </html>