-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Experimenting with an HSV class #3518
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
Conversation
…tween color spaces over proxy rgba
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.
Nice! I'm really liking it, as well as the color conversion utilities (.into
gives Rust Into::into
vibes, which I love)!
I left some comments, so I would appreciate it if you could take a look.
Additionally, do you think it's a good idea to enable mypy for this file? It seems like it should be fine from my brief glance though.
|
||
|
||
def test_into_HSV() -> None: | ||
nt.assert_equal(RED.into(HSV).into(ManimColor), RED) |
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.
Is adding colors/performing other operations on colors supported? Those might also be good tests to make sure it works for both ManimColor
and other color spaces (HSV
).
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.
yip, just haven't written the tests by now and still unsure of how useful it would be, but it works!
Surely, that should be fine, i had it enabled i think when writing it. |
Co-authored-by: adeshpande <[email protected]>
Co-authored-by: adeshpande <[email protected]>
Co-authored-by: adeshpande <[email protected]>
Co-authored-by: adeshpande <[email protected]>
8cefae8
to
a38cf7f
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
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.
Left some more comments (mostly formatting), but other than that it looks good to me!
Co-authored-by: Aarush Deshpande <[email protected]>
Co-authored-by: Aarush Deshpande <[email protected]>
Co-authored-by: Aarush Deshpande <[email protected]>
Co-authored-by: Aarush Deshpande <[email protected]>
for more information, see https://pre-commit.ci
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.
LGTM! Thanks for sticking through my comments :)
Attempt at finding a useful solution for different color spaces
fixes #3485