Anonymous user
Module:Color contrast: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 21:
local lum = ''
if ( 0 <= h and h < 360 and 0 <= s and s <= 1 and 0 <= l and l <= 1 ) then
local c = (1 - math.abs(2*l - 1))*s
local x = c*(1 - math.abs(
local m = l - c/2
|