Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --totally a harmless screensaver, i swear
- math.randomseed(os.time())
- --if adding additional lines, the string cannot be longer than the monitor size
- local displayStringTab = {
- "You're so dumb, you think socialism means partying!",
- "You're so dumb, you think Johnny Cash is a pay toilet!",
- "You're so dumb, it takes you an hour and a half to watch '60 Minutes'!",
- "You're so stupid, that you went to a Clippers game to get a hair cut.",
- "You're so stupid, that you went to a Whalers game to see Shamu.",
- "You're so stupid, it takes you an hour to cook minute rice.",
- "You're so ugly, you'd make a train take a dirt road!",
- "You're so ugly, when you walk into a bank, they turn the cameras off!",
- "You're so ugly, you could be the poster child for birth control!",
- "You're so ugly, when you were born the doctor slapped your mother!",
- "You're face is so ugly, when you cry the tears run up your face.",
- "You're so ugly, your mother had to feed you with a sling shot.",
- "You're so fat, when you sit around the house, you sit AROUND the HOUSE!",
- "You're so fat, a picture of you would fall off the wall!",
- "You're so fat, if you weighed five more pounds, you could get group insurance!",
- "Well I'll see you in my dreams - if I eat too much.",
- "You're the best at all you do - and all you do is make people hate you.",
- "When you get run over by a car it shouldn't be listed under 'accidents'.",
- "Ever since I saw you in your family tree I've wanted to cut it down.",
- "You're a habit I'd like to kick; with both feet.",
- "I hear the only place you're ever invited is outside.",
- "If you ever tax your brain, don't charge more than a penny.",
- "Don't you have a terribly empty feeling - in your skull?",
- "I don't consider you a vulture. I consider you something a vulture would eat.",
- "You have a face only a mother could love - and she hates it!"
- }
- local timeout = .05
- --wrap all connected monitors
- local sides = peripheral.getNames()
- local t = { }
- for _,side in pairs(sides) do
- if peripheral.getType(side) == "monitor" then
- table.insert(t, peripheral.wrap(side))
- end
- end
- --clear the screens
- for _,mon in pairs(t) do
- mon.clear()
- end
- --color picker. insert key (1-16) receive binary color
- local function returnCol(key)
- return 2 ^ (key - 1)
- end
- --start screensaver
- while true do
- for _,mon in pairs(t) do
- mon.setTextScale(0.5)
- --get size of monitor currently being written to
- local x,y = mon.getSize()
- --choose random phrase from above table
- local displayString = displayStringTab[math.random(1,#displayStringTab)]
- --set a random starting position
- local posX = math.random(1, math.floor(x-string.len(displayString)))
- local posY = math.random(1,y)
- mon.setCursorPos(posX,posY)
- --ranomize the text color
- mon.setTextColor(returnCol(math.random(1,16)))
- mon.write(displayString)
- sleep(timeout)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment