-
Notifications
You must be signed in to change notification settings - Fork 10
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 refactor #93
Color refactor #93
Conversation
Just out of curiosity, are you adding breaking changes without changing the major version from 2? |
No, I marked this as breaking so we would know that we would need to increase the major version, and to see if this change is something we actually want to consider. I have some other refactoring I want to consider as well, so for the non-draft version of this PR, I'll probably create a |
888247d
to
7ddf133
Compare
Stuff Revert "Refactor out pixel.RGBA" This reverts commit d029ce8. Reworked to keep pixel.RGBA around, but an alias working on color more color work
7ddf133
to
c8b1b4c
Compare
We did go from v1 to v2 and have the original v1 snapshot as a release. |
And just a note, this PR is now targeting a v3 feature branch instead of main. |
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
Refactor the
pixel.RGBA
to be an alias ofcolor.RGBA
so that it's less data to move around and better integrated with the standard library.Also, adds an implicit contract with the caller.
color.Color
.pixel.RGBA
(alias forcolor.RGBA
.Addresses: #71