|

当前进度:
已完成色彩表
已完成循环检测
正在摸索渐变算法
- function OnEvent(event, arg)
- if (event == "G_PRESSED") then
- colorList = {}
- table.insert(colorList, {
- Name = "#FF1B1B",
- Red = 255,
- Green = 27,
- Blue = 27
- })
- table.insert(colorList, {
- Name = "#FF761B",
- Red = 255,
- Green = 118,
- Blue = 27
- })
- table.insert(colorList, {
- Name = "#FFA41B",
- Red = 255,
- Green = 164,
- Blue = 27
- })
- table.insert(colorList, {
- Name = "#FFD21B",
- Red = 255,
- Green = 210,
- Blue = 27
- })
- table.insert(colorList, {
- Name = "#FEFF1B",
- Red = 254,
- Green = 255,
- Blue = 27
- })
- table.insert(colorList, {
- Name = "#B1E819",
- Red = 177,
- Green = 232,
- Blue = 25
- })
- table.insert(colorList, {
- Name = "#17D21B",
- Red = 23,
- Green = 210,
- Blue = 27
- })
- table.insert(colorList, {
- Name = "#17A2D2",
- Red = 23,
- Green = 162,
- Blue = 210
- })
- table.insert(colorList, {
- Name = "#1763D2",
- Red = 23,
- Green = 99,
- Blue = 210
- })
- table.insert(colorList, {
- Name = "#3817D2",
- Red = 56,
- Green = 23,
- Blue = 210
- })
- table.insert(colorList, {
- Name = "#9717D2",
- Red = 151,
- Green = 23,
- Blue = 210
- })
- table.insert(colorList, {
- Name = "#DE1888",
- red = 222,
- Green = 24,
- Blue = 136
- })
- for loop = 1, #colorList do
- OutputLogMessage("Color-No." .. loop .. ":\t" .. colorList[loop].Name .. "\n")
- end
- end
- end
复制代码
|
|