lib/functions/hue.js
function hue(color, value){
  if (value) {
    var hslaColor = color.hsla;
    return hsla(
      value,
      new nodes.Unit(hslaColor.s),
      new nodes.Unit(hslaColor.l),
      new nodes.Unit(hslaColor.a)
    )
  }
  return component(color, new nodes.String('hue'));
}
function hue(color, value){
  if (value) {
    var hslaColor = color.hsla;
    return hsla(
      value,
      new nodes.Unit(hslaColor.s),
      new nodes.Unit(hslaColor.l),
      new nodes.Unit(hslaColor.a)
    )
  }
  return component(color, new nodes.String('hue'));
}
function hue ( color , value ) { if ( value ) { var hslaColor = color . hsla ; return hsla ( value , new nodes . Unit ( hslaColor . s ) , new nodes . Unit ( hslaColor . l ) , new nodes . Unit ( hslaColor . a ) ) } return component ( color , new nodes . String ( 'hue' ) ) ; }
Return the hue component of the given `color`,
or set the hue component to the optional second `value` argument.

Examples:

hue(#00c)
// => 240deg

hue(#00c, 90deg)
// => #6c0

@param {RGBA|HSLA} color
@param {Unit} [value]
@return {Unit|RGBA}
@api public
Return the hue component of the given color or set the hue component to the optional second value argument .