Notoriously Problematic Merge
    Have ideas to improve npm?Join in the discussion! »

    green-to-red

    1.0.2 • 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/

    Install

    npm i green-to-red

    DownloadsWeekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.24 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar