This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Need to create ripple effect with DALI RGB stripes
#2
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).

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
Reply


Messages In This Thread
RE: Need to create ripple effect with DALI RGB stripes - by admin - 26.08.2024, 13:42

Forum Jump: