-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: match
color.RGBA()
behavior from the standard library (#30)
* Update whisker in flake The template requires whisker 2.5.1 but in nix we were stuck with 2.3.0 * Make alpha 255 by default I think this was the intended behavior, we want the colors to be fully opaque. * Match the expected behavior of color.RGBA() and update tests In the standard library color.RGBA() expects returned values to be in the interval [0, 0xffff]. With this patch we match the behavior of image.color.RGBA.RGBA(). Tests were updated accordingly and a test was added to make sure we match the implementation of the standard library.
- Loading branch information
Showing
8 changed files
with
153 additions
and
175 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.