-
Notifications
You must be signed in to change notification settings - Fork 6
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
It'd be useful to be able to provide an input and output color #2
Comments
For reference: this comment on the If you give an input and an output color, I don't think the Sass HSL Color functions can give you the exact color, but they can probably get you close ... that would take some playing around with. As for the UI, it would require changing the current UI as the sliders would no longer be needed. It would probably be an experience more like this:
Implementing something like this would require a significant change in the existing UI and functionality of the application. I think to build something like this, we would need some kind of "mode" switcher in the UI where you could choose something like:
Switching between these 2 "modes" would give you the UI you need. Is this making sense? |
While I completely agree with the UI part, I'm not so certain it requires a lot of work on the application logic. This is more along the lines of what I was thinking:
The above is just a primitive example, but essentially by converting to and from HSL you can pretty much have the exact values you need to pop into the various functions. |
Yup, you're right. The math/logic for determining the Sass function output is basically exactly what you typed above and that logic is already in the code. The challenge is more figuring out how to accommodate this in the UI, i.e. these two use cases:
It's probably worth taking a look at the request in issue 3 and figuring out how we might accommodate something like this too. Perhaps there's a way we could build a "switcher" to switch between these "modes" (and any future modes that may be asked for. |
@AaronHolbrook commented on Oct 4, 2012
Original: arc90/sass-color-picker#3
The text was updated successfully, but these errors were encountered: