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.

counting script with rgbw
#6
This will write a random RGBW value 10 times with 1 second delay between each write:
Code:
math.randomseed(os.time())

for i = 1, 10 do
  r = math.random(0, 255)
  g = math.random(0, 255)
  b = math.random(0, 255)
  w = math.random(0, 255)

  rgbw = r * 0x1000000 + g * 0x10000 + b * 0x100 + w

  grp.write('1/1/13', rgbw)

  os.sleep(1)
end
Reply


Messages In This Thread
counting script with rgbw - by Danny - 13.10.2023, 08:03
RE: counting script with rgbw - by Daniel - 13.10.2023, 09:17
RE: counting script with rgbw - by Danny - 13.10.2023, 09:28
RE: counting script with rgbw - by admin - 13.10.2023, 09:43
RE: counting script with rgbw - by Danny - 13.10.2023, 11:22
RE: counting script with rgbw - by admin - 13.10.2023, 11:28

Forum Jump: