PageRenderTime 82ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/projects/batik-1.7/samples/tests/spec/filters/feTurbulence.svg

https://gitlab.com/essere.lab.public/qualitas.class-corpus
SVG | 112 lines | 69 code | 13 blank | 30 comment | 0 complexity | 050b51fa3c50029d6cb88a129d9ce778 MD5 | raw file
  1. <?xml version="1.0" standalone="no"?>
  2. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
  3. "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
  4. <!--
  5. Licensed to the Apache Software Foundation (ASF) under one or more
  6. contributor license agreements. See the NOTICE file distributed with
  7. this work for additional information regarding copyright ownership.
  8. The ASF licenses this file to You under the Apache License, Version 2.0
  9. (the "License"); you may not use this file except in compliance with
  10. the License. You may obtain a copy of the License at
  11. http://www.apache.org/licenses/LICENSE-2.0
  12. Unless required by applicable law or agreed to in writing, software
  13. distributed under the License is distributed on an "AS IS" BASIS,
  14. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. See the License for the specific language governing permissions and
  16. limitations under the License.
  17. -->
  18. <!-- ========================================================================= -->
  19. <!-- Test description here -->
  20. <!-- -->
  21. <!-- @author vincent.hardy@eng.sun.com -->
  22. <!-- @version $Id: feTurbulence.svg 475477 2006-11-15 22:44:28Z cam $ -->
  23. <!-- ========================================================================= -->
  24. <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
  25. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500">
  26. <title>Filter Effect: feTurbulence</title>
  27. <!-- ============================================================= -->
  28. <!-- Test content -->
  29. <!-- ============================================================= -->
  30. <g id="testContent">
  31. <g>
  32. <text x="225" y="50" class="title">
  33. Filter Effect: feTurbulence
  34. </text>
  35. <g transform="translate(0,62.5)">
  36. <defs>
  37. <filter id="Turb1" filterUnits="objectBoundingBox"
  38. x="0%" y="0%" width="100%" height="100%">
  39. <feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/>
  40. </filter>
  41. <filter id="Turb2" filterUnits="objectBoundingBox"
  42. x="0%" y="0%" width="100%" height="100%">
  43. <feTurbulence type="turbulence" baseFrequency="0.1" numOctaves="2"/>
  44. </filter>
  45. <filter id="Turb3" filterUnits="objectBoundingBox"
  46. x="0%" y="0%" width="100%" height="100%">
  47. <feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="8"/>
  48. </filter>
  49. <filter id="Turb4" filterUnits="objectBoundingBox"
  50. x="0%" y="0%" width="100%" height="100%">
  51. <feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="4"/>
  52. </filter>
  53. <filter id="Turb5" filterUnits="objectBoundingBox"
  54. x="0%" y="0%" width="100%" height="100%">
  55. <feTurbulence type="fractalNoise" baseFrequency="0.4" numOctaves="4"/>
  56. </filter>
  57. <filter id="Turb6" filterUnits="objectBoundingBox"
  58. x="0%" y="0%" width="100%" height="100%">
  59. <feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/>
  60. </filter>
  61. </defs>
  62. <g class="legend">
  63. <rect x="25" y="25" width="100" height="75" style="filter:url(#Turb1)" />
  64. <text x="75" y="117">type=turbulence</text>
  65. <text x="75" y="129">baseFrequency=0.05</text>
  66. <text x="75" y="141">numOctaves=2</text>
  67. <rect x="175" y="25" width="100" height="75" style="filter:url(#Turb2)" />
  68. <text x="225" y="117">type=turbulence</text>
  69. <text x="225" y="129">baseFrequency=0.1</text>
  70. <text x="225" y="141">numOctaves=2</text>
  71. <rect x="325" y="25" width="100" height="75" style="filter:url(#Turb3)" />
  72. <text x="375" y="117">type=turbulence</text>
  73. <text x="375" y="129">baseFrequency=0.05</text>
  74. <text x="375" y="141">numOctaves=8</text>
  75. <rect x="25" y="180" width="100" height="75" style="filter:url(#Turb4)" />
  76. <text x="75" y="272">type=fractalNoise</text>
  77. <text x="75" y="284">baseFrequency=0.1</text>
  78. <text x="75" y="296">numOctaves=4</text>
  79. <rect x="175" y="180" width="100" height="75" style="filter:url(#Turb5)" />
  80. <text x="225" y="272">type=fractalNoise</text>
  81. <text x="225" y="284">baseFrequency=0.4</text>
  82. <text x="225" y="296">numOctaves=4</text>
  83. <rect x="325" y="180" width="100" height="75" style="filter:url(#Turb6)" />
  84. <text x="375" y="272">type=fractalNoise</text>
  85. <text x="375" y="284">baseFrequency=0.1</text>
  86. <text x="375" y="296">numOctaves=1</text>
  87. </g>
  88. </g>
  89. </g>
  90. </g>
  91. <!-- ============================================================= -->
  92. <!-- Batik sample mark -->
  93. <!-- ============================================================= -->
  94. <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
  95. </svg>