Difference between revisions of "Paintutils.drawPixel"

From ComputerCraft Wiki
Jump to: navigation, search
m (colours, not colour)
m (Int -> {{type|number}})
Line 2: Line 2:
  |args=[[int (type)|int]] x, [[int (type)|int]] y, [[colour (API)|colour]] colour
  |args=[[int (type)|int]] x, {{type|number}} y, {{type|number}} colour

Revision as of 00:38, 12 July 2013

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


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