Skip to content

Fix hue modulo operation#50

Closed
adroitwhiz wants to merge 1 commit intoQix-:masterfrom
adroitwhiz:fix-hue-modulo
Closed

Fix hue modulo operation#50
adroitwhiz wants to merge 1 commit intoQix-:masterfrom
adroitwhiz:fix-hue-modulo

Conversation

@adroitwhiz
Copy link
Copy Markdown
Contributor

This modulo operation was removed in #37 under the mistaken impression that it was unnecessary. However, it's required for a proper "wrapping modulo"--without it, hue values lower than -360 will not be made positive.

I've added a test that checks for such a case specifically.

@Qix-
Copy link
Copy Markdown
Owner

Qix- commented Nov 26, 2021

Thanks, and sorry for the delay on this. Landed ultimately in 9563250 and published as 1.7.3.

@Qix- Qix- closed this Nov 26, 2021
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