public static function spin($color, $amount){ $hsl = $color->toHSL(); $hue = fmod($hsl['h'] + $amount->value, 360); $hsl['h'] = $hue < 0 ? 360 + $hue : $hue; return Less_Environment::hsla($hsl['h'], $hsl['s'], $hsl['l'], $hsl['a']); }