Closed bwiklund closed 10 years ago
Yeah I have changed the syntax in order to implement parsing from various formats - for example
cq.color([255, 0, 0], "rgb") cq.color([0.5, 0.2, 0.7], "hsl")
also it now parses strings
cq.color("rgb(0, 128, 64)")
same for hsl, hsv, hsla, hsva, rgba
Sorry for the mess.
See color object reference
I'm seeing that this
cq.color(0,0,0,1)
creates a color withundefined
for r, g, and b, while wrapping the values in an arraycq.color([0,0,0,1])
creates the color correctly. Is this broken, or is #color changing? If so, I can make a PR.