Skip to content

A function that generates hue filter matrix for svg element feColorMatrix which simulates filter effect of photoshop.

License

Notifications You must be signed in to change notification settings

raunicorn/svg-hue-filter-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-hue-filter-matrix

A function that generates hue filter matrix for svg element feColorMatrix which simulates filter effect of photoshop.

install

import svgHueFilterMatrix from "svg-hue-filter-matrix";

how to use

var hue = 0; // range from -100 to 100, 0 means no hue shift
console.log(svgHueFilterMatrix(hue));
// `1 0 0 0 0
// 0 1 0 0 0
// 0 0 1 0 0
// 0 0 0 1 0`

About

A function that generates hue filter matrix for svg element feColorMatrix which simulates filter effect of photoshop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published