Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adMonitor = {[1] = peripheral.wrap("monitor_17")}
- term.redirect(adMonitor)
- imgWidth = 39
- imgHeight = 19
- img = paintutils.loadImage("ad1")
- function drawImg2(img, x,y, imgwidth, imgheight)
- curY = 0
- for yy = 1, imgheight do
- for xx = 1, imgwidth do
- local c = img[yy][xx]
- if (c == 0) then
- c = 15
- end
- paintutils.drawPixel(x+xx-1, y+curY, c)
- end
- curY = curY + 1
- end
- end
- drawImg2(img, 1,1,imgWidth, imgHeight)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement