Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hslToRgb): correct % for potential negative hue
Due to the Javascript modulo bug (https://stackoverflow.com/questions/4467539/javascript-modulo-gives-a-negative-result-for-negative-numbers), any negative value for hue results in a bug where the resulting color will be black. Negative hues should cycle through to 359, so that functions like `adjustHue()` can provide consistent behavior for all colors. fix #437
- Loading branch information