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

Support for Hex shorthand colors #6

Open
jigarius opened this issue Oct 1, 2020 · 0 comments
Open

Support for Hex shorthand colors #6

jigarius opened this issue Oct 1, 2020 · 0 comments

Comments

@jigarius
Copy link

jigarius commented Oct 1, 2020

Currently, Hsluv.hex_to_hsluv works with #ffffff, however, it doesn't work with #fff. I was wondering if there's a possibility to support the shorthand. If you think it's a good thing to have, I can try creating a PR.

> Hsluv.hex_to_hsluv('#fff')

ArgumentError: wrong number of arguments (given 2, expected 3)
from /nix/store/kn5y2xfa9gps4qdwklavf6hhrfml7dr3-ruby2.7.1-hsluv-1.0.1/lib/ruby/gems/2.7.0/gems/hsluv-1.0.1/lib/hsluv.rb:46:in `rgb_to_hsluv'
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

1 participant