paintutils.drawPixel

From ComputerCraft Wiki
Revision as of 08:13, 29 March 2013 by Viproz (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=paintutils.drawPixel |args=int x, int y, colour colour |api=paintutils |returns=To complete ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function paintutils.drawPixel
Draw a pixel on the screen
Syntax paintutils.drawPixel(int x, int y, colour colour)
Returns To complete
Part of ComputerCraft
API paintutils

Examples

Grid paper.png  Example
This code will draw a pixel in red colour at the position (10, 8)
Code
image = paintutils.drawPixel(10, 8, colour.red)