Module:Mouse-ripple

-- Original Module: https://zh.moegirl.org/%E6%A8%A1%E5%9D%97:Mouse-ripple local module = {}

local getArgs = require('Module:Arguments').getArgs

function randomRgb function color local val = math.random(0, 255) local zero = '' if val < 16 then zero = '0' end return zero..string.format('%X', val) end return '#'..color..color..color end

-- class: a:画布行 b:块容器（为了尽量少输出字符串） function canvasLine local line = {} for i=1, 50 do		line[i] = ' ' end return ' '..table.concat(line)..'' end

function _main(args) local canvas = {} for i=1, 50 do		canvas[i] = canvasLine end return ''..table.concat(canvas)..'' end

function module.main return _main(args) end

return module