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.

paints.svg 3.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  3. <g>
  4. <text x="20" y="20" style="font-size:18">Paints - Patterns &amp; Gradients</text>
  5. <text x="10" y="35" style="font-size:12">Gradient</text>
  6. <defs>
  7. <linearGradient id="grad1" x1="0" y1="0" x2="1" y2="0">
  8. <stop offset="0" style="stop-color:crimson" />
  9. <stop offset="1" style="stop-color:gold" />
  10. </linearGradient>
  11. <linearGradient id="grad2" x1="0" y1="0" x2="0" y2="1">
  12. <stop offset="0" style="stop-color:crimson" />
  13. <stop offset="0.4" style="stop-color:purple" />
  14. <stop offset="1" style="stop-color:gold" />
  15. </linearGradient>
  16. <linearGradient id="grad3" x1="0" y1="0" x2="1" y2="1">
  17. <stop offset="0" style="stop-color:crimson" />
  18. <stop offset="0.7" style="stop-color:blue" />
  19. <stop offset="1" style="stop-color:gold" />
  20. </linearGradient>
  21. <radialGradient id="rad"
  22. fx="20%" fy="30%" rx="10%" ry="30%" r="40%">
  23. <stop offset="0" stop-color="gold" />
  24. <stop offset="1" stop-color="green" stop-opacity="0.4"/>
  25. </radialGradient>
  26. </defs>
  27. <rect x="15" y="40" width="100" height="75" style="fill:url(#grad1)" />
  28. <rect x="15" y="117.5" width="100" height="75" style="fill:url(#grad2)" />
  29. <rect x="15" y="195" width="100" height="75" style="fill:url(#grad3)" />
  30. <rect x="15" y="275" width="100" height="75" style="fill:url(#rad)" />
  31. <text x="120" y="35" style="font-size:12">Pattern</text>
  32. <defs>
  33. <pattern id="pat1" x="0" y="0" width=".75" height="50%">
  34. <circle cx="10" cy="10" r="10" style="fill:red" />
  35. <rect x="10" y="10" width="15" height="15" style="fill:green"/>
  36. </pattern>
  37. <pattern id="pat2" x="0" y="0" width=".2" height="50%">
  38. <circle cx="10" cy="10" r="10" style="fill:red" />
  39. <rect x="10" y="10" width="15" height="15" style="fill:green"/>
  40. </pattern>
  41. <pattern id="pat3" x="0" y="0" width=".3" height="50%" patternTransform="matrix(1, 0.3, -0.5, 1, 5, 10)">
  42. <circle cx="10" cy="10" r="10" style="fill:red" />
  43. <rect x="10" y="10" width="15" height="15" style="fill:green"/>
  44. <text x="5" y="10" style="font-size:10">Patt</text>
  45. </pattern>
  46. <pattern id="see" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse">
  47. <circle cx="10" cy="10" r="10" style="fill:red" />
  48. <rect x="10" y="10" width="15" height="15" style="fill:green;fill-opacity:0.5"/>
  49. </pattern>
  50. </defs>
  51. <rect x="125" y="40" width="100" height="75" style="fill:url(#pat1)" />
  52. <rect x="125" y="117.5" width="100" height="75" style="fill:url(#pat2)" />
  53. <rect x="125" y="195" width="100" height="75" style="fill:url(#pat3)" />
  54. <rect x="125" y="275" width="100" height="75" style="fill:url(#see)" />
  55. <defs>
  56. <pattern id="patgrad1" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
  57. <circle cx="10" cy="10" r="10" style="fill:url(#grad1)" />
  58. </pattern>
  59. <pattern id="patpat2" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
  60. <circle cx="10" cy="10" r="10" style="fill:url(#pat2)" />
  61. </pattern>
  62. <pattern id="patimage3" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
  63. <image x="0" y="0" width="10" height="10" xlink:href="logo.jpg"/>
  64. </pattern>
  65. </defs>
  66. <text x="230" y="35" style="font-size:12">Pattern in Pattern</text>
  67. <rect x="235" y="40" width="100" height="75" style="fill:url(#patgrad1)" />
  68. <rect x="235" y="117.5" width="100" height="75" style="fill:url(#patpat2)" />
  69. <rect x="235" y="195" width="100" height="75" style="fill:url(#patimage3)" />
  70. </g>
  71. </svg>