Complementary color trait for colors that have a Hue
#383
explosion-mental
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Thanks for bringing this up! It can be nice to have a dedicated trait for it, even if it can be accomplished with hue shifts. Especially if it's possible to implement for more types than those with explicit hue components. The meaning of the terminology needs to be nailed down, though. It looks like your implementation and the one in the linked stack overflow question are quite different, not to mention that you are dividing the hues into chunks. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While switching/porting more stuff to
palette
, I've noticed It doesn't have aComplementary
color feature. Not sure how useful or needed this is, but the crate does give you enough tools to implement it yourself.I have a dead simple prototype, I'm sure yourself as the author could come up with something more sophisticated and/or find some issues with it.
https://codeberg.org/explosion-mental/wallust/src/commit/b023a478001a3ab66bafe77b087e6dd22dbeb44d/src/colors.rs#L236-L270
Beta Was this translation helpful? Give feedback.
All reactions