local memory = require "memory"
function rainbow(speed, alpha)
local red = math.floor(math.sin(os.clock() * speed) * 127 + 128)
local green = math.floor(math.sin(os.clock() * speed + 2) * 127 + 128)
local blue = math.floor(math.sin(os.clock() * speed + 4) * 127 + 128)
return red,green,blue,alpha
end
local red, green, blue, alpha = rainbow(20, 255)
function main()
while true do wait(0)
memory.write(7392527, red, 4, true)
memory.write(7392525, green, 1, true)
memory.write(7392523, blue, 1, true)
memory.write(7392518, alpha, 4, true)
memory.write(7392604, red, 4, true)
memory.write(7392602, green, 1, true)
memory.write(7392600, blue, 1, true)
memory.write(7392595, alpha, 4, true)
memory.write(7392687, red, 4, true)
memory.write(7392685, green, 1, true)
memory.write(7392683, blue, 1, true)
memory.write(7392678, alpha, 4, true)
memory.write(0x48110F, red, 4, true)
memory.write(0x48110B, green, 1, true)
memory.write(0x48110D, blue, 1, true)
memory.write(0x481106, alpha, 4, true)
end
end