1.0.0 • Published 9 years ago
fixed-luminance v1.0.0
fixed-luminance
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
1.0.0
9 years ago