26.08.2024, 13:42
Resident script with 0 sleep time. Script assumes that your RGB objects are addressed from 1/1/1 to 1/1/19.
colors table contains RGB color values in hexadecimal form. You can add extra elements if needed.
os.sleep(1) controls the time between each step (1 second in this example).
colors table contains RGB color values in hexadecimal form. You can add extra elements if needed.
os.sleep(1) controls the time between each step (1 second in this example).
Code:
colors = {
0xFFFFFF,
0x7F7FFF,
0x3F3FFF,
0x0000FF,
}
count = 19
for i = 1, count do
for j, color in ipairs(colors) do
index = i + 1 - j
if index < 1 then
index = index + count
end
grp.write('1/1/' .. index, color)
end
os.sleep(1)
end