local mdl = {} function mdl.TextObject(text, foregroundColor, backgroundColor) local tO = {} tO.text = text tO.foregroundColor = foregroundColor tO.backgroundColor = backgroundColor return tO end function mdl.drawtO(tO, x, y) local bg = tO.backgroundColor local fg = tO.foregroundColor gpu.setBackground(bg.color, bg.isPaletteIndex) gpu.setForeground(fg.color, fg.isPaletteIndex) gpu.set(x, y, tO.text) end return mdl