Anonymous user
Module:Color contrast: Difference between revisions
fix
(fix) |
(fix) |
||
Line 122:
end
local v1 = color2lum(c[1])
local v2 = color2lum(c[2])
Line 128:
return (v2 + 0.05)/(v1 + 0.05)
else
return args['error'] or '?'
end
end
Line 138:
function p.ratio(frame)
local args = frame.args[1] and frame.args or frame:getParent().args
end
|