on master help sign in
Fix #655, bad hsl values outside of unit circle
commit1465e4d478963d10bed3a5489c5526c7c929199d authorEvan Czaplicki <info@elm-lang.org> dateFri 25 Jul 2014, 03:19 (12 years ago) parent0ca4ddd
1 file changed+1−1
libraries/Color.elm+1−1
libraries/Color.elm+1−1
@@ -60,7 +60,7 @@ with an alpha component for transparency.
6060-}
6161hsla : Float -> Float -> Float -> Float -> Color
6262hsla hue saturation lightness alpha =
63− HSLA (hue - toFloat (floor (hue / (2*pi)))) saturation lightness alpha
63+ HSLA (hue - turns (toFloat (floor (hue / (2*pi))))) saturation lightness alpha
6464
6565{-| Create [HSL colors](http://en.wikipedia.org/wiki/HSL_and_HSV). This gives
6666you access to colors more like a color wheel, where all hues are aranged in a