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.

138 lines
5.0 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. var item = project.importSVG(document.getElementById('svg'));
  9. </script>
  10. </head>
  11. <body>
  12. <svg
  13. xmlns:dc="http://purl.org/dc/elements/1.1/"
  14. xmlns:cc="http://creativecommons.org/ns#"
  15. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  16. xmlns:svg="http://www.w3.org/2000/svg"
  17. xmlns="http://www.w3.org/2000/svg"
  18. xmlns:xlink="http://www.w3.org/1999/xlink"
  19. version="1.1"
  20. width="500px"
  21. height="500px"
  22. id="svg">
  23. <defs
  24. id="defs1903">
  25. <linearGradient
  26. id="linearGradient3794">
  27. <stop
  28. id="stop3796"
  29. style="stop-color:#ff5555;stop-opacity:1"
  30. offset="0" />
  31. <stop
  32. id="stop3808"
  33. style="stop-color:#522ba8;stop-opacity:1"
  34. offset="0.18868095" />
  35. <stop
  36. id="stop3802"
  37. style="stop-color:#ff00ff;stop-opacity:1"
  38. offset="0.38376093" />
  39. <stop
  40. id="stop3804"
  41. style="stop-color:#ff6600;stop-opacity:1"
  42. offset="0.57983696" />
  43. <stop
  44. id="stop3806"
  45. style="stop-color:#28170b;stop-opacity:1"
  46. offset="0.80833077" />
  47. <stop
  48. id="stop3798"
  49. style="stop-color:#ff5555;stop-opacity:0"
  50. offset="1" />
  51. </linearGradient>
  52. <linearGradient
  53. id="linearGradient3770">
  54. <stop
  55. id="stop3772"
  56. style="stop-color:#d1ab00;stop-opacity:1"
  57. offset="0" />
  58. <stop
  59. id="stop3788"
  60. style="stop-color:#502d16;stop-opacity:1"
  61. offset="0.0625" />
  62. <stop
  63. id="stop3786"
  64. style="stop-color:#ff5555;stop-opacity:1"
  65. offset="0.125" />
  66. <stop
  67. id="stop3784"
  68. style="stop-color:#00ff00;stop-opacity:1"
  69. offset="0.54704088" />
  70. <stop
  71. id="stop3782"
  72. style="stop-color:#ffff00;stop-opacity:1"
  73. offset="0.79772007" />
  74. <stop
  75. id="stop3774"
  76. style="stop-color:#2b1100;stop-opacity:1"
  77. offset="1" />
  78. </linearGradient>
  79. <linearGradient
  80. id="linearGradient3760">
  81. <stop
  82. id="stop3762"
  83. style="stop-color:#ff6600;stop-opacity:1"
  84. offset="0" />
  85. <stop
  86. id="stop3764"
  87. style="stop-color:#2b1100;stop-opacity:1"
  88. offset="1" />
  89. </linearGradient>
  90. <linearGradient
  91. x1="443.22928"
  92. y1="215.30028"
  93. x2="867.58954"
  94. y2="229.58598"
  95. id="linearGradient3768"
  96. xlink:href="#linearGradient3760"
  97. gradientUnits="userSpaceOnUse" />
  98. <linearGradient
  99. x1="443.22928"
  100. y1="215.30028"
  101. x2="867.58954"
  102. y2="229.58598"
  103. id="linearGradient3776"
  104. xlink:href="#linearGradient3770"
  105. gradientUnits="userSpaceOnUse" />
  106. <linearGradient
  107. x1="454.28571"
  108. y1="-7.6378121"
  109. x2="591.42859"
  110. y2="480.93362"
  111. id="linearGradient3800"
  112. xlink:href="#linearGradient3794"
  113. gradientUnits="userSpaceOnUse" />
  114. </defs>
  115. <metadata
  116. id="metadata1906">
  117. <rdf:RDF>
  118. <cc:Work
  119. rdf:about="">
  120. <dc:format>image/svg+xml</dc:format>
  121. <dc:type
  122. rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
  123. <dc:title></dc:title>
  124. </cc:Work>
  125. </rdf:RDF>
  126. </metadata>
  127. <g
  128. id="layer1">
  129. <path
  130. d="m 325.71425,440.93359 -24.52516,-67.66103 -63.02035,-34.75536 5.11537,-71.78671 -43.43569,-57.38329 33.87141,-63.49982 -16.34058,-70.089121 56.77078,-44.233226 13.57994,-70.675915 69.85396,-17.318309 41.15239,-59.042199 70.85875,12.5911 61.6092,-37.19955 59.61144,40.3234 71.41322,-8.92476 38.05675,61.08341 68.86926,20.893202 9.92171,71.281547 54.41716,47.098539 -19.92888,69.154452 30.55585,65.16011 -46.33359,55.06994 1.41115,71.9549 -64.7268,31.46332 -27.97755,66.30805 -71.92816,2.4164 -52.52867,49.19593 -66.69248,-27.04832 -67.99711,23.57737 -49.92508,-51.83614 z"
  131. transform="translate(-125.71429,194.28571) scale(0.5, 0.5)"
  132. id="path3792"
  133. style="fill:url(#linearGradient3800);fill-opacity:1;stroke;stroke:black;stroke-width:2px;" />
  134. </g>
  135. </svg>
  136. <canvas id="canvas" width="500" height="500"></canvas>
  137. </body>
  138. </html>