Last active
September 4, 2019 02:11
-
-
Save jimkang/1028b905a459dd47171b1b4b4aae592a to your computer and use it in GitHub Desktop.
Perlin noise SVG filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg width="40" height="40" viewBox="0 0 100 100" | |
xmlns="http://www.w3.org/2000/svg"> | |
<filter id="displacementFilter"> | |
<feTurbulence type="fractalNoise" baseFrequency="0.75" | |
numOctaves="2" result="turbulence" stitchTiles="stitch"/> | |
</filter> | |
<rect id="noise-square" width="40" height="40" | |
style="filter: url(#displacementFilter)"/> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment