1.0.6 • Published 2 years ago

green-to-red v1.0.6

Weekly downloads
16
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago