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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i fixed-luminance

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • finnpauls