fixed-luminance

    1.0.0 • Public • Published

    fixed-luminance

    NPM

    Naive implementation for changing the hue of a color, but keep the perceived luminosity by changing the lightness value accordingly.

    var fixedLuminance = require('fixed-luminance')
     
    fixedLuminance([r, g, b], newHue) // returns [r, g, b] with new hue but the same relative luminance

    Install

    npm i fixed-luminance

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • finnpauls