lib/devices/custom.js
function adjustLuminance(rgb, lum) {
  var newRgb = {};
  newRgb.red = calculateLuminance(rgb.red, lum);
  newRgb.green = calculateLuminance(rgb.green, lum);
  newRgb.blue = calculateLuminance(rgb.blue, lum);

  return newRgb;
}
function adjustLuminance(rgb, lum) {
  var newRgb = {};
  newRgb.red = calculateLuminance(rgb.red, lum);
  newRgb.green = calculateLuminance(rgb.green, lum);
  newRgb.blue = calculateLuminance(rgb.blue, lum);

  return newRgb;
}
function adjustLuminance ( rgb , lum ) { var newRgb = { } ; newRgb . red = calculateLuminance ( rgb . red , lum ) ; newRgb . green = calculateLuminance ( rgb . green , lum ) ; newRgb . blue = calculateLuminance ( rgb . blue , lum ) ; return newRgb ; }
Adjusts an RGB color by the relative luminance

@private
@param {Object} rgb rgb color value to convert
@param {Number} lum percentage of luminance
@return {Object} RGB color values
Adjusts an RGB color by the relative luminance