-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Rotate / flip the circle #66
Comments
Hey @mcer12! At the moment there isn't an option to adjust the hue wheel's angle or direction. I chose not to add that since I didn't see any particular benefit and thought it would just add extra complexity. That said, if it is something you really need then I'm happy to implement it when I have the time! Can I ask what your use-case is and how urgently is this needed? |
The goal is to make web interface to control philips Hue, that means to make the color picker similar to that on the linked picture. |
Ah, rad. I'll have a look at implementing this sometime (by adding |
Sounds like exactly what I need! |
Currently working on this over in the features/hue-wheel-angle branch if you'd like to take a look! I've implemented Here's an example: |
@mcer12 Just pushed this feature in iro.js 4.4.0! To get the result you're looking for, you'll need to set var colorPicker = new iro.ColorPicker({
...
wheelAngle: 270,
wheelDirection: 'clockwise',
}) Documentation is also available on the project's GitHub readme and on https://iro.js.org Gonna close this thread now, but feel free to comment or open up another thread if there's anything else you need! |
Thank you very much, this is exactly what I needed. Great improvement! |
Awesome, glad I could help! |
Hi @jaames Is there a way to rotate or flip (mirror) the color picker circle? For example I would need Red on top, Green on the right and Blue on the left?
The text was updated successfully, but these errors were encountered: