Jump to content




paintutils.drawImage()


  • You cannot reply to this topic
2 replies to this topic

#1 Hydrotronics

  • Members
  • 131 posts
  • LocationThe hall of 1000 monkeys and only 1 typewriter

Posted 20 August 2016 - 03:23 PM

I know I'm running another post at the same time, but I'm working on something reletively big and I'm trying to get as much done as possible with the time I have.
I have a function which makes life easier for drawing boxes for the User Creation thing but the drawImage function isn't working. I have confirmed that the image is in that location.
this is my code:

os.loadAPI("Kitsune/apis/ks")
local function box(name)
   ks.colourScreen(colors.orange)
   paintutils.drawImage("Kitsune/images/logo",1,10)
   paintutils.drawBox(4,8,47,10,colors.black)
   paintutils.drawLine(5,9,46,9,colors.white)
   ks.center(name,7)
   term.setTextColor(colors.black)
end

It's throwing the error "expected image, x, y" when it has been supplied with image, x, y

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 20 August 2016 - 03:47 PM

You gave it a string, not an image object.

See the example on this page.

#3 Hydrotronics

  • Members
  • 131 posts
  • LocationThe hall of 1000 monkeys and only 1 typewriter

Posted 20 August 2016 - 03:50 PM

oh. I forgot about that XD
thx!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users