-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Color Enhancements #200
Color Enhancements #200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this! I shared some of my thoughts. Let me know what you think.
2b0d9f0
to
2869ff5
Compare
Wouldn't |
42697e3
to
998c825
Compare
Hey! I noticed the mentioning of my PR and just want to drop by and say that it's already possible to have conversion automatically derived in version 0.5. That includes two way conversion and The changes in 0.6 will make that feature more flexible, remove derived It's cool to see Palette being integrated like this and Iced is a really interesting project! Let me know if you have any questions or requests for how to make things smoother. 😁 |
681fc78
to
786823d
Compare
786823d
to
861d6db
Compare
Ready for review here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great! The example is really cool.
I have shared some ideas to improve the code here and there. We are close to merging this!
Sliders for many color spaces update as any other sliders are moved around. Color is space is clamped to sRGB, so Lab and Lch color spaces cannot be fully expressed. TODO: - Real-time manipulation of base color to create a color scheme. - Show slider value under each slider - Show output values in text boxes for each color space
861d6db
to
3e71eae
Compare
Each color type implements ColorSpace to define its own representation and update methods. View sliders are implemented on the ColorPicker struct.
We can use `ColorSpace::new` instead
Very cool changes @hecrj! |
`Point` and `Size` are now properly re-exported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
As many different colors do not play well with GIF compression, I have added a static screenshot instead of an animated GIF in the example README
. The image links to an animated Gfycat, like most of the other examples.
I think this ship is ready to sail! Thank you for all the work and the great example :D
Aww yeah |
A few enhancements to the color functionality. Adds the
palette
feature flag that adds dependency and tie-in to the palette color management library.Might wait for a significant change in palette to land before proceeding.
Color
[0,1]
Srgba
typeExample App