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.

30 lines
1.5 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Gradients</title>
  6. <script type="text/javascript" src="../../dist/paper-full.js"></script>
  7. <script type="text/paperscript" canvas="canvas">
  8. project.importSVG(document.getElementById('svg'));
  9. </script>
  10. </head>
  11. <body>
  12. <svg id="svg" x="0" y="0" width="300" height="600" version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink">
  13. <linearGradient x1="45" y1="345" x2="255" y2="555" gradientUnits="userSpaceOnUse" id="gradient-2">
  14. <stop offset="0" stop-color="rgb(255, 255, 0)" stop-opacity="0"></stop>
  15. <stop offset="0.5" stop-color="rgb(255, 0, 0)"></stop>
  16. <stop offset="1" stop-color="rgb(0, 0, 0)"></stop>
  17. </linearGradient>
  18. <radialGradient cx="150" cy="150" r="120" gradientUnits="userSpaceOnUse" id="gradient-1">
  19. <stop offset="0" stop-color="rgb(255, 255, 0)" stop-opacity="0"></stop>
  20. <stop offset="0.5" stop-color="rgb(255, 0, 0)"></stop>
  21. <stop offset="1" stop-color="rgb(0, 0, 0)"></stop>
  22. </radialGradient>
  23. <g fill="none" stroke="rgb(0, 0, 0)" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0">
  24. <circle cx="150" cy="150" r="120" fill="url(#gradient-1)"></circle>
  25. <rect x="45" y="345" width="210" height="210" transform="rotate(45,150,450)" fill="url(#gradient-2)"></rect>
  26. </g>
  27. </svg>
  28. <canvas id="canvas" width="300" height="600"></canvas>
  29. </body>
  30. </html>