wvanbergen / chunky_png

Read/write access to PNG images in pure Ruby.
https://chunkypng.com
MIT License
1.05k stars 101 forks source link

Fix Color#from_hsl, Color#from_hsv error when hue is 360 #88

Closed jhamon closed 9 years ago

jhamon commented 9 years ago

Changing the private method Color#cylindrical_to_cubic to use an inclusive rather than exclusive range fixes the NilClass error reported in Issue #85 without changing the public API.

wvanbergen commented 9 years ago

Thanks for fixing this!