Skip to content
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

HsvColor was made readonly #560

Merged
merged 1 commit into from
Oct 11, 2023
Merged

HsvColor was made readonly #560

merged 1 commit into from
Oct 11, 2023

Conversation

Lehonti
Copy link
Contributor

@Lehonti Lehonti commented Oct 11, 2023

No description provided.


while (hue < 0) {
hue = 360;
while (newHue < 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look fine, but just noting that this code could be improved in a future commit
These loops are effectively computing newHue mod 360, but that can be computed directly with the % operator, although negative numbers need special handling

@cameronwhite cameronwhite merged commit 21aacdd into PintaProject:master Oct 11, 2023
5 checks passed
@Lehonti Lehonti deleted the improvement2 branch October 11, 2023 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants