1.0.6 • Published 11 months ago

green-to-red v1.0.6

Weekly downloads
16
License
MIT
Repository
github
Last release
11 months ago

green-to-red

npm.io npm npm GitHub

Get a color from a green to red scale

green-To-red

Install

$ npm install green-to-red --save

Usage

const greenToRed = require('green-to-red');

greenToRed(0);          // Output -> [0, 255, 0]
greenToRed(20, true);   // Output -> #32ff00
greenToRed(100, true);  // Output -> #ff0000

Demo

https://radulucut.github.io/green-to-red/demo/

1.0.6

11 months ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago