# jupiter.RainbowState

local state = jupiter.RainbowState.new() -- default update rate is 1ms
local state = jupiter.RainbowState.new(5) -- update every 5 ms
local state = jupiter.RainbowState.new(5, initial_color_u32)

state:update() -- internally keeps track of time and when to update, but must still be called to update the color value

local col = state:color() -- get the state color u32