Difference between revisions of "Paintutils.drawPixel"
From ComputerCraft Wiki
m (edit the links to the apis) |
m (BTW need someone to test what it returns) |
||
Line 9: | Line 9: | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc=This code will draw a | + | |desc=This code will draw a red pixel at the position (10, 8) |
|code=image = [[paintutils.drawPixel]](10, 8, [[colour (API)|colour]].red) | |code=image = [[paintutils.drawPixel]](10, 8, [[colour (API)|colour]].red) | ||
}} | }} |
Revision as of 08:17, 29 March 2013
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
Example | |
This code will draw a red pixel at the position (10, 8) | |
Code |
image = paintutils.drawPixel(10, 8, colour.red) |