Skip to content

JS Module to apply a hex color to an image through css filters

License

Notifications You must be signed in to change notification settings

nilllzz/colorize-filter

Repository files navigation

colorize-filter

JS Module to apply a hex color to an image through css filters

Installation

npm install colorize-filter --save
yarn add colorize-filter

Usage

Javascript

var colorizeFilter = require("colorize-filter");
var filter = colorizeFilter.generateFilter("dead00");
console.log(filter);

Output should be invert(75%) sepia(89%) saturate(3406%) hue-rotate(13deg) brightness(101%) contrast(104%).

Typescript

import { generateFilter } from "colorize-filter";

const filter = generateFilter("dead00");
console.log(filter);

Output should be invert(75%) sepia(89%) saturate(3406%) hue-rotate(13deg) brightness(101%) contrast(104%).

About

JS Module to apply a hex color to an image through css filters

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published