Skip to content

Instantly share code, notes, and snippets.

@gemmadlou
Last active September 6, 2016 15:20
Show Gist options
  • Save gemmadlou/38850f36be5dde0dac3d12089a0dc677 to your computer and use it in GitHub Desktop.
Save gemmadlou/38850f36be5dde0dac3d12089a0dc677 to your computer and use it in GitHub Desktop.
Color Matrices Using FeColorMatrix
<!-- Color Matrices -->
<svg>
<filter id="red-matrix" color-interpolation-filters="sRGB">
<feColorMatrix
type="matrix"
values="0.6 0.8 -0.2 0 0
0.1 0.1 0.5 0 0
-0.3 0 0 0 0
0 0 0 1 0" />
</filter>
</filter>
</svg>
<!-- color-interpolation-filters="sRGB" is important for cross-browser compatibility -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment