Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Minif OS Paint Tool
- --Functions and Variables
- local function drawWindow()
- paintutils.drawFilledBox(3,3,osScreenSizeX-2,osScreenSizeY-2,colors.white)
- paintutils.drawBox(3,3,osScreenSizeX-2,5,colors.lightGray)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.setCursorPos(4,4)
- term.write("Enter name of picture:")
- end
- local function editFile()
- term.setCursorPos(4,7)
- local file = read()
- shell.run("paint user/".. osEnteredUser.."/"..file)
- end
- --Execution
- drawWindow()
- editFile()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement