@marchworks/colortone
v1.0.7
Published
Color toner
Downloads
41
Readme
Getting Started
npm install @marchworks/colortoneOr if you are using yarn
yarn add @marchworks/colortoneUsage
import colortone from 'colortone';
// colortone(color, ratio) --> hex || null
const darkerBlueTone = colortone("#0000ff", -0.05)
const lighterBlueTone = colortone("#0000ff", 0.05)Args
The color arg can be in any of the following formats
"#rrggbb"
"#rgb"
[r, g, b] --> the r, g and b values should be of type number
{r, g, b} --> the r, g and b values should be of type numberthe ratio can not be outside [-1, 1]
