Module:Color contrast: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
typo
(fix)
(typo)
Line 123:
 
function p._ratio(args)
local v1 = color2lum(cargs[1])
local v2 = color2lum(cargs[2])
if (type(v1) == 'number' and type(v2) == 'number') then
return (v2 + 0.05)/(v1 + 0.05)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu