local rainbow_r, rainbow_g, rainbow_b, rainbow_a = rainbow(1, 255)
imgui.TextColored(imgui.ImVec4(rainbow_r, rainbow_g, rainbow_b, rainbow_a), 'Text')
---------------------------------
function rainbow(speed, alpha)
local r = math.floor(math.sin(os.clock() * speed) * 127 + 128)
local g = math.floor(math.sin(os.clock() * speed + 2) * 127 + 128)
local b = math.floor(math.sin(os.clock() * speed + 4) * 127 + 128)
return r,g,b,alpha
end