Posted 17 May 2014 - 08:46 PM
Please tell me how to use paintutils API?
thanks!
thanks!
local image = paintutils.loadImage(path) -- Loads and returns an image object from a path.
paintutils.drawImage(image, 0, 0) -- Draws it at 0,0.
paintutils.drawPixel(0, 0, colours.red) -- Draws a red pixel at 0, 0
paintutils.drawLine(0, 0, 0, 10, colours.red)-- Draws a line from 0,0 to 0,10 in the red.
local image = paintutils.loadImage(path) -- Loads and returns an image object from a path. paintutils.drawImage(image, 0, 0) -- Draws it at 0,0. paintutils.drawPixel(0, 0, colours.red) -- Draws a red pixel at 0, 0 paintutils.drawLine(0, 0, 0, 10, colours.red)-- Draws a line from 0,0 to 0,10 in the red.