“Module:ColorOps”的版本历史

来自魔学

差异选择:选中要对比的修订的单选按钮,然后按Enter键或下面的按钮。
说明:(当前)=与最后修订的差异,(之前)=与上个修订的差异,小=小编辑。

2023年4月1日 (星期六)

  • 当前之前 15:002023年4月1日 (六) 15:00 W 留言 贡献 2,922字节 +2,922 创建页面,内容为“local module = {} local getArgs = require('Module:Arguments').getArgs local Color = require('Module:color') function _main(args) local action = args[1] local arg1 = args[2] local arg2 = args[3] local arg3 = args[4] if action == 'reverse' then local color = arg1 return Color.create(color):reverse():toString('hex') end if action == 'random' then local min = arg1 or 0 local max = arg2 or 255 return Color.random(min, max):t…”