Difference between revisions of "Paintutils.drawPixel"
From ComputerCraft Wiki
(Changed output) |
m (colours, not colour) |
||
Line 10: | Line 10: | ||
{{Example | {{Example | ||
|desc=This code will draw a red pixel at the position (10, 8) | |desc=This code will draw a red pixel at the position (10, 8) | ||
− | |code=image = [[paintutils.drawPixel]](10, 8, [[colour (API)| | + | |code=image = [[paintutils.drawPixel]](10, 8, [[colour (API)|colours]].red) |
}} | }} | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Revision as of 00:03, 12 July 2013
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
Example | |
This code will draw a red pixel at the position (10, 8) | |
Code |
image = paintutils.drawPixel(10, 8, colours.red) |