Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local prognam = shell.getRunningProgram()
- if not prognam == "PAPI" then
- if fs.exists("PAPI") then
- fs.delete("PAPI")
- fs.copy(prognam,"PAPI")
- fs.delete(prognam)
- else
- fs.copy(prognam,"PAPI")
- fs.delete(prognam)
- end
- end
- size = term.getSize()
- function placeColor(x, y, color)
- paintutils.drawPixel(x, y, color)
- end
- function placeColour(x, y, color)
- paintutils.drawPixel(x, y, color)
- end
- function box(x1, y1, x2, y2, type, color)
- if type == Filled then
- paintutils.drawFilledBox(x1, y1, x2, y2, color)
- elseif type == Empty then
- paintutils.drawBox(x1, y1, x2, y2, color)
- elseif type == filled then
- paintutils.drawFilledBox(x1, y1, x2, y2, color)
- elseif type == empty then
- paintuils.drawBox(x1, y1, x2, y2, color)
- else
- term.setTextColor(colors.red)
- print"Error, function 'box' was used incorrectly"
- term.setTextColor(colors.white)
- error()
- end
- end
- function line(x1, y1, x2, y2, color)
- paintutils.drawLine(x1, y1, x2, y2, color)
- end
- function FImage(path)
- paintutils.loadImage(path)
- end
- function DImage(Image, x, y)
- paintutils.drawImage(Image, x, y)
- end
- white = colors.white
- orange = colors.orange
- magenta = colors.magenta
- lightBlue = colors.lightBlue
- yellow = colors.yellow
- lime = colors.lime
- pink = colors.pink
- gray = colors.gray
- lightGray = colors.lightGray
- cyan = colors.cyan
- purple = colors.purple
- blue = colors.blue
- brown = colors.brown
- green = colors.green
- red = colors.red
- black = colors.black
- grey = colors.gray
- lightGrey = colors.lightGray
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement