Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are colors broken right now? #19

Closed
bwiklund opened this issue May 30, 2013 · 2 comments
Closed

Are colors broken right now? #19

bwiklund opened this issue May 30, 2013 · 2 comments

Comments

@bwiklund
Copy link
Contributor

I'm seeing that this cq.color(0,0,0,1) creates a color with undefined for r, g, and b, while wrapping the values in an array cq.color([0,0,0,1]) creates the color correctly. Is this broken, or is #color changing? If so, I can make a PR.

@rezoner
Copy link
Owner

rezoner commented May 30, 2013

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.

@rezoner
Copy link
Owner

rezoner commented Sep 25, 2014

See color object reference

http://canvasquery.com/color

@rezoner rezoner closed this as completed Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants