Dav1dde / gl3n

OpenGL Maths for D (not glm for D).
http://dav1dde.github.com/gl3n/
Other
103 stars 49 forks source link

hsv2rgb vs. rgb2hsv #37

Open hdon opened 10 years ago

hdon commented 10 years ago

Hope I'm not spamming, but I wanted to get this down before I knocked off for the night in case I forgot.

I haven't looked carefully yet, but I think rgb2hsv returns hue in 360 degrees, while hsv2rgb expects hue in 0-1 range.

A comment in the source code would be very helpful!