This package has been deprecated

Author message:

This project has been renamed. Install using @radulucut/green-to-red instead.

green-to-red
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

green-to-red

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/

Package Sidebar

Install

npm i green-to-red

Weekly Downloads

21

Version

1.0.6

License

MIT

Unpacked Size

4.53 kB

Total Files

5

Last publish

Collaborators

  • radulucut