[bug] fix hsl to rgb not working with max hue value

This commit is contained in:
Kuldeep M 2019-01-15 09:44:59 +00:00
parent 4b44310523
commit 1d0c0b8577

View File

@ -98,7 +98,7 @@ var helper = (function() {
var green;
var blue;
if (huePrime === 0) {
if (huePrime === 0 || huePrime === 6) {
red = chroma;
green = secondComponent;
blue = 0;