| 1 |
<?xml version="1.0"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" |
| 3 |
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| 4 |
<svg width="450px" height="325px" viewBox="0 0 450 325" |
| 5 |
xmlns="http://www.w3.org/2000/svg" version="1.1"> |
| 6 |
<title>Example feTurbulence - Examples of feTurbulence operations</title> |
| 7 |
<desc>Six rectangular areas showing the effects of |
| 8 |
various parameter settings for feTurbulence.</desc> |
| 9 |
<g font-family="Verdana" text-anchor="middle" font-size="10" > |
| 10 |
<defs> |
| 11 |
<filter id="Turb1" filterUnits="objectBoundingBox" |
| 12 |
x="0%" y="0%" width="100%" height="100%"> |
| 13 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 14 |
</filter> |
| 15 |
<filter id="Turb2" filterUnits="objectBoundingBox" |
| 16 |
x="0%" y="0%" width="100%" height="100%"> |
| 17 |
<feTurbulence type="turbulence" baseFrequency="0.1" numOctaves="2"/> |
| 18 |
</filter> |
| 19 |
<filter id="Turb3" filterUnits="objectBoundingBox" |
| 20 |
x="0%" y="0%" width="100%" height="100%"> |
| 21 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="8"/> |
| 22 |
</filter> |
| 23 |
<filter id="Turb4" filterUnits="objectBoundingBox" |
| 24 |
x="0%" y="0%" width="100%" height="100%"> |
| 25 |
<feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="4"/> |
| 26 |
</filter> |
| 27 |
<filter id="Turb5" filterUnits="objectBoundingBox" |
| 28 |
x="0%" y="0%" width="100%" height="100%"> |
| 29 |
<feTurbulence type="fractalNoise" baseFrequency="0.4" numOctaves="4"/> |
| 30 |
</filter> |
| 31 |
<filter id="Turb6" filterUnits="objectBoundingBox" |
| 32 |
x="0%" y="0%" width="100%" height="100%"> |
| 33 |
<feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/> |
| 34 |
</filter> |
| 35 |
</defs> |
| 36 |
|
| 37 |
<rect x="1" y="1" width="448" height="323" |
| 38 |
fill="none" stroke="blue" stroke-width="1" /> |
| 39 |
|
| 40 |
<rect x="25" y="25" width="100" height="75" filter="url(#Turb1)" /> |
| 41 |
<text x="75" y="117">type=turbulence</text> |
| 42 |
<text x="75" y="129">baseFrequency=0.05</text> |
| 43 |
<text x="75" y="141">numOctaves=2</text> |
| 44 |
|
| 45 |
<rect x="175" y="25" width="100" height="75" filter="url(#Turb2)" /> |
| 46 |
<text x="225" y="117">type=turbulence</text> |
| 47 |
<text x="225" y="129">baseFrequency=0.1</text> |
| 48 |
<text x="225" y="141">numOctaves=2</text> |
| 49 |
|
| 50 |
<rect x="325" y="25" width="100" height="75" filter="url(#Turb3)" /> |
| 51 |
<text x="375" y="117">type=turbulence</text> |
| 52 |
<text x="375" y="129">baseFrequency=0.05</text> |
| 53 |
<text x="375" y="141">numOctaves=8</text> |
| 54 |
|
| 55 |
<rect x="25" y="180" width="100" height="75" filter="url(#Turb4)" /> |
| 56 |
<text x="75" y="272">type=fractalNoise</text> |
| 57 |
<text x="75" y="284">baseFrequency=0.1</text> |
| 58 |
<text x="75" y="296">numOctaves=4</text> |
| 59 |
|
| 60 |
<rect x="175" y="180" width="100" height="75" filter="url(#Turb5)" /> |
| 61 |
<text x="225" y="272">type=fractalNoise</text> |
| 62 |
<text x="225" y="284">baseFrequency=0.4</text> |
| 63 |
<text x="225" y="296">numOctaves=4</text> |
| 64 |
|
| 65 |
<rect x="325" y="180" width="100" height="75" filter="url(#Turb6)" /> |
| 66 |
<text x="375" y="272">type=fractalNoise</text> |
| 67 |
<text x="375" y="284">baseFrequency=0.1</text> |
| 68 |
<text x="375" y="296">numOctaves=1</text> |
| 69 |
</g> |
| 70 |
</svg> |
| 71 |
|