Difference between revisions of "Paintutils.drawPixel"

From ComputerCraft Wiki
Jump to: navigation, search
m (BTW need someone to test what it returns)
(Changed output)
Line 4: Line 4:
 
  |args=[[int (type)|int]] x, [[int (type)|int]] y, [[colour (API)|colour]] colour
 
  |args=[[int (type)|int]] x, [[int (type)|int]] y, [[colour (API)|colour]] colour
 
  |api=paintutils
 
  |api=paintutils
  |returns=To complete
+
  |returns=nil
 
  |addon=ComputerCraft
 
  |addon=ComputerCraft
 
  |desc=Draw a pixel on the screen
 
  |desc=Draw a pixel on the screen

Revision as of 11:36, 23 April 2013


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

Examples

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