-
-
Notifications
You must be signed in to change notification settings - Fork 109
Add DynamicTga and ConvertColor #450
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
Do we want to revert the same change to |
Yes, I would like to keep the APIs of |
I thought that might be the case :). I agree it doesn't belong in this PR. |
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.
Looks good. I left some small comment/naming nits.
Co-authored-by: James Waples <[email protected]>
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.
Looks good!
Hi! Thank you for helping out with Embedded Graphics development! Please:
CHANGELOG.md
entry in the Unreleased section under the appropriate heading (Added, Fixed, etc) and appropriate crate (embedded-graphics
,simulator
,tinytga
,tinybmp
) if your changes affect the public APIrustfmt
on the projectjust build
(Linux/macOS only) and make sure it passes. If you use Windows, check that CI passes once you've opened the PR.PR description
This PR adds
DynamicTga
which is the first part of #424. The implementation depends on the color conversion suggested in #446, so I've also included that in this PR.I've also decided to revert a change I made in #430, where I merged
Tga
andTgaRaw
. Keeping them separate results in a cleaner API and I'm not sure why I decided to change that in the first place.