Commit jfs' patch to fix rounding errors as he doesn't have trunk going at the moment. Closes #1018.

Originally committed to SVN as r3622.
This commit is contained in:
Amar Takhar 2009-10-05 22:46:28 +00:00
parent 6364e127f6
commit 4cc6610161

View file

@ -172,9 +172,6 @@ function HSV_to_RGB(H,S,V)
end
end
r = math.floor(r)
g = math.floor(g)
b = math.floor(b)
return r,g,b
end
@ -239,10 +236,6 @@ function HSL_to_RGB(H, S, L)
end
r = math.floor(r * 255)
g = math.floor(g * 255)
b = math.floor(b * 255)
return r, g, b
end