1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-30 23:17:53 +02:00
ComfyFactorio/tools/rainbow_colors.lua
2021-03-24 16:46:00 +01:00

28 lines
522 B
Lua

local colors = {}
for x = 1, 100, 1 do
colors[#colors + 1] = {r = 1, g = x * 0.01, b = 0}
end
for x = 100, 0, -1 do
colors[#colors + 1] = {r = x * 0.01, g = 1, b = 0}
end
for x = 1, 100, 1 do
colors[#colors + 1] = {r = 0, g = 1, b = x * 0.01}
end
for x = 100, 0, -1 do
colors[#colors + 1] = {r = 0, g = x * 0.01, b = 1}
end
for x = 1, 100, 1 do
colors[#colors + 1] = {r = x * 0.01, g = 0, b = 1}
end
for x = 100, 0, -1 do
colors[#colors + 1] = {r = 1, g = 0, b = x * 0.01}
end
return colors