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

1.0.9 • Public • Published

green-to-red

npm npm GitHub

Get a color from a green to red scale

green-To-red

Install

$ npm install @radulucut/green-to-red --save

Usage

const greenToRed = require("@radulucut/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 @radulucut/green-to-red

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

4.64 kB

Total Files

5

Last publish

Collaborators

  • radulucut