small comment fix
This commit is contained in:
@@ -4,6 +4,8 @@ Code adapted from http://www.cs.rit.edu/~ncs/color/t_convert.html
|
|||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
|
|
||||||
|
v 1
|
||||||
|
|
||||||
= v1.1 =
|
= v1.1 =
|
||||||
* Hue(color, newHue) changed to wrap around for invalid values.
|
* Hue(color, newHue) changed to wrap around for invalid values.
|
||||||
* Desaturate(color, percent) renamed to Saturation(color, percent).
|
* Desaturate(color, percent) renamed to Saturation(color, percent).
|
||||||
@@ -17,8 +19,7 @@ HSV treats absolute brightness of a color at 1.0 in V.
|
|||||||
Saturation is different too.
|
Saturation is different too.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
-- ColorToHSV(c)
|
-- HasAlpha(c)
|
||||||
-- Takes in a normal color("") and returns a table with the HSV values.
|
|
||||||
function HasAlpha(c)
|
function HasAlpha(c)
|
||||||
if c[4] then
|
if c[4] then
|
||||||
return c[4]
|
return c[4]
|
||||||
@@ -27,6 +28,8 @@ function HasAlpha(c)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- ColorToHSV(c)
|
||||||
|
-- Takes in a normal color("") and returns a table with the HSV values.
|
||||||
function ColorToHSV(c)
|
function ColorToHSV(c)
|
||||||
local r = c[1]
|
local r = c[1]
|
||||||
local g = c[2]
|
local g = c[2]
|
||||||
|
|||||||
Reference in New Issue
Block a user