LearnBoost/stylus — Issue #455: hsla() does not return actual hsla value 
Author: joemccann
Created: 2011-11-05 14:23:43+00:00
State: open

I'm attempting to port the following "spin" method from less:

spin(color, amount)
hsl = hsla(color)
hue = (hsl.h + amount) % 360;
hsl.h = hue < 0 ? 360 + hue : hue;
return hsla(hsl)

spinColor = spin(#0f83da, 50)

The problem is `hsla()` on the first line of the function, returns either the rgba value or the hex value of the color, *not* the actual hue, saturation, luminosity and alpha values.

I checked the source and it appears you have some hsla conversion taking place but why can't I get the actua hsla values back?

Ultimately, I want to be able to pass in a hex value and get back the hsla value.