paintutils.drawImage
From ComputerCraft Wiki
| Draws an image whose top left corner is at x and y coordinates (images created with the paint program, then loaded using paintutils.loadImage). | |
| Syntax | paintutils.drawImage(table image, number x, number y) |
| Returns | boolean was the image printed successfully? |
| Part of | ComputerCraft |
| API | paintutils |
Examples
| The program loads the image 'bar' (using paintutils.loadImage) onto the variable 'image', and then draws it on the screen, starting at position {3, 5}. | |
| Code |
local image = paintutils.loadImage("bar") paintutils.drawImage(image, 3, 5) |