Jump to content

Module:Repeat: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 66:
end
local range = args[1] .. ", "
for i=1,(count-1) do
local x = string.format("%.1f",100 * ((i-1)/(argcount-1))).. "% "
range = range .. args[i] .. " ".. x .. ", "
range = range .. args[i + 1] .. " " .. x .. ", "
end
range = range .. args[argcountcount] .. " 100%"
return "linear-gradient(to "..direction..", ".. range ..") no-repeat"
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.