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.

35 lines
951 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Clouds</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. // Any newly created item will inherit the following styles:
  10. project.currentStyle = {
  11. strokeColor: 'black',
  12. strokeWidth: 5,
  13. strokeJoin: 'round',
  14. strokeCap: 'round'
  15. };
  16. // The user has to drag the mouse at least 30pt before the mouse drag
  17. // event is fired:
  18. tool.minDistance = 30;
  19. var path;
  20. function onMouseDown(event) {
  21. path = new Path();
  22. path.add(event.point);
  23. }
  24. function onMouseDrag(event) {
  25. path.arcTo(event.point, true);
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <canvas id="canvas" resize></canvas>
  31. </body>
  32. </html>