Apply filters to colors to simulate things like color blindness and night vision. This library tries to simulate the behavior of the svg filter effect feColorMatrix.
Usage and output examples can be found here:
Install the module with:
npm install color-matrix
NOTE: For a better “color blindness” library, see: color-blind. This library is just a port of the old “color matrix” code for use in node. It does allow you to pass in custom filters (which is why I published it, instead of throwing it away).
Read the API Docs by using this link:
Command Line Tool
color-matrix tool can be installed globally by running:
- MDN: feColorMatrix
- w3c spec: feColorMatrix
- color-js source code
- Original Color Matrix Library
- StackOverflow: RGB filters for different forms of color blindness
- Fun with the colormatrix
Copyright (c) 2014 skratchdot
Licensed under the MIT license.