local tablex = require("core.tablex")
local UI = game.UI
local Lerp = function(colorA, colorB, t)
  if t < 0 then
    t = 0
  end
  if 1 < t then
    t = 1
  end
  local r = colorA[1] + (colorB[1] - colorA[1]) * t
  local g = colorA[2] + (colorB[2] - colorA[2]) * t
  local b = colorA[3] + (colorB[3] - colorA[3]) * t
  return {
    r,
    g,
    b
  }
end
return {Lerp = Lerp}
