修正COLOR.hsv函数s小于0时漏返回透明度 close #445
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
local abs=math.abs
|
||||
local function hsv(h,s,v,a)
|
||||
if s<=0 then return v,v,v end
|
||||
if s<=0 then return v,v,v,a end
|
||||
h=h*6
|
||||
local c=v*s
|
||||
local x=abs((h-1)%2-1)*c
|
||||
|
||||
Reference in New Issue
Block a user