fixed-luminance

Change the hue of a color without changing the relative luminance


Keywords
color, luminance, relative
License
MIT
Install
npm install fixed-luminance@1.0.0

Documentation

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