local monitor = peripheral.find("monitor") if monitor == nil then print("monitor not connected") shell.exit() end local cols = { [1] = colors.white, [2] = colors.orange, [3] = colors.magenta, [4] = colors.lightBlue, [5] = colors.yellow, [6] = colors.lime, [7] = colors.pink, [8] = colors.gray, [9] = colors.lightGray, [10] = colors.cyan, [11] = colors.purple, [12] = colors.blue, [13] = colors.brown, [14] = colors.green, [15] = colors.red, [16] = colors.black, } term.redirect(monitor) local width, height = monitor.getSize() local function render() paintutils.drawFilledBox(0, 0, width, height, colors.black) local k = 0 while true do monitor.setTextColor(cols[math.random(1, #cols)]) local digit = math.pow(-1, k) / (2 * k - 1) k = k + 1 textutils.slowWrite(tostring(digit)) end end while true do render() sleep(1 + (math.random() * 10)) end