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.

34 lines
1.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Gradients</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="canvas1">
  9. var path = new Path.Circle({
  10. center: view.center,
  11. radius: view.bounds.height * 0.4
  12. });
  13. path.fillColor = {
  14. stops: ['yellow', 'red', 'black'],
  15. radial: true,
  16. origin: path.position,
  17. destination: path.bounds.rightCenter
  18. }
  19. var symbol = new SymbolDefinition(path);
  20. symbol.place(view.center);
  21. window._json = project.exportJSON();
  22. console.log(window._json);
  23. </script>
  24. <script type="text/paperscript" canvas="canvas2">
  25. project.importJSON(window._json);
  26. </script>
  27. </head>
  28. <body>
  29. <canvas id="canvas1" width="500" height="500"></canvas>
  30. <canvas id="canvas2" width="500" height="500"></canvas>
  31. </body>
  32. </html>