Last active
February 21, 2023 19:08
-
-
Save rodzyk/3ab5ed5cf0e4048ac43f9f877c25fba8 to your computer and use it in GitHub Desktop.
SVG filter 8-bit color
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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> | |
<filter id="8bit-color" color-interpolation-filters="sRGB"> | |
<feComponentTransfer> | |
<feFuncR type="discrete" tableValues="0 0.125 0.251 0.376 0.502 0.627 0.753 0.878" /> | |
<feFuncG type="discrete" tableValues="0 0.125 0.251 0.376 0.502 0.627 0.753 0.878" /> | |
<feFuncB type="discrete" tableValues="0 0.251 0.502 0.753" /> | |
<feFuncA type="identity" /> | |
</feComponentTransfer> | |
</filter> | |
<image href="https://placekitten.com/512/512" filter="url(#8bit-color)"></image> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment