Module:Color contrast: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(add support for hsl)
No edit summary
Line 56:
end
-- whitespace
c = c:match( '^%s*(.-)[%s;]*$' )
 
-- lowercase
Line 67:
end
-- remove leading # (if there is one) and whitespace
c = mw.ustring.match(c, '^[%s#]*([a-f0-9]*)[%s;]*$')
 
-- convert from hsl