paintutils.drawImage

Draws a Image which has been created by paintutils.loadImage or paintutils.parseImage.

This function does not restore the original cursor position after being called. You may have to manually set it back with the term.setCursorPos function.
This function does not restore the original background colour after being called. You may have to manually set it back with the term.setBackgroundColour function.
ExampleDraw a Image
Loads and draws a Image.
Code
<nowiki>
local pic = paintutils.loadImage("/picture.nfp")
paintutils.drawImage(pic)
    </nowiki>

paintutils.drawImage
Function
Syntax
paintutils.drawImage(
  • picture : table
  • x : number
  • y : number
)

Returns nil
API paintutils
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.