/projects/batik-1.7/samples/tests/spec/filters/feTurbulence.svg
SVG | 112 lines | 69 code | 13 blank | 30 comment | 0 complexity | 050b51fa3c50029d6cb88a129d9ce778 MD5 | raw file
- <?xml version="1.0" standalone="no"?>
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
- <!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <!-- ========================================================================= -->
- <!-- Test description here -->
- <!-- -->
- <!-- @author vincent.hardy@eng.sun.com -->
- <!-- @version $Id: feTurbulence.svg 475477 2006-11-15 22:44:28Z cam $ -->
- <!-- ========================================================================= -->
- <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
- <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">
- <title>Filter Effect: feTurbulence</title>
- <!-- ============================================================= -->
- <!-- Test content -->
- <!-- ============================================================= -->
- <g id="testContent">
- <g>
- <text x="225" y="50" class="title">
- Filter Effect: feTurbulence
- </text>
- <g transform="translate(0,62.5)">
- <defs>
- <filter id="Turb1" filterUnits="objectBoundingBox"
- x="0%" y="0%" width="100%" height="100%">
- <feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/>
- </filter>
- <filter id="Turb2" filterUnits="objectBoundingBox"
- x="0%" y="0%" width="100%" height="100%">
- <feTurbulence type="turbulence" baseFrequency="0.1" numOctaves="2"/>
- </filter>
- <filter id="Turb3" filterUnits="objectBoundingBox"
- x="0%" y="0%" width="100%" height="100%">
- <feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="8"/>
- </filter>
- <filter id="Turb4" filterUnits="objectBoundingBox"
- x="0%" y="0%" width="100%" height="100%">
- <feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="4"/>
- </filter>
- <filter id="Turb5" filterUnits="objectBoundingBox"
- x="0%" y="0%" width="100%" height="100%">
- <feTurbulence type="fractalNoise" baseFrequency="0.4" numOctaves="4"/>
- </filter>
- <filter id="Turb6" filterUnits="objectBoundingBox"
- x="0%" y="0%" width="100%" height="100%">
- <feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/>
- </filter>
- </defs>
- <g class="legend">
- <rect x="25" y="25" width="100" height="75" style="filter:url(#Turb1)" />
- <text x="75" y="117">type=turbulence</text>
- <text x="75" y="129">baseFrequency=0.05</text>
- <text x="75" y="141">numOctaves=2</text>
- <rect x="175" y="25" width="100" height="75" style="filter:url(#Turb2)" />
- <text x="225" y="117">type=turbulence</text>
- <text x="225" y="129">baseFrequency=0.1</text>
- <text x="225" y="141">numOctaves=2</text>
- <rect x="325" y="25" width="100" height="75" style="filter:url(#Turb3)" />
- <text x="375" y="117">type=turbulence</text>
- <text x="375" y="129">baseFrequency=0.05</text>
- <text x="375" y="141">numOctaves=8</text>
- <rect x="25" y="180" width="100" height="75" style="filter:url(#Turb4)" />
- <text x="75" y="272">type=fractalNoise</text>
- <text x="75" y="284">baseFrequency=0.1</text>
- <text x="75" y="296">numOctaves=4</text>
- <rect x="175" y="180" width="100" height="75" style="filter:url(#Turb5)" />
- <text x="225" y="272">type=fractalNoise</text>
- <text x="225" y="284">baseFrequency=0.4</text>
- <text x="225" y="296">numOctaves=4</text>
- <rect x="325" y="180" width="100" height="75" style="filter:url(#Turb6)" />
- <text x="375" y="272">type=fractalNoise</text>
- <text x="375" y="284">baseFrequency=0.1</text>
- <text x="375" y="296">numOctaves=1</text>
- </g>
- </g>
- </g>
- </g>
- <!-- ============================================================= -->
- <!-- Batik sample mark -->
- <!-- ============================================================= -->
- <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
-
- </svg>