1.0.7 • Published 4 years ago

@marchworks/colortone v1.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

Getting Started

npm install @marchworks/colortone

Or if you are using yarn

yarn add @marchworks/colortone

Usage

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 number

the ratio can not be outside -1, 1

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago