Difference between revisions of "Paintutils.drawPixel"
From ComputerCraft Wiki
(Created page with "{{lowercase}} {{Function |name=paintutils.drawPixel |args=int x, int y, colour colour |api=paintutils |returns=To complete ...") |
m (edit the links to the apis) |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=paintutils.drawPixel | |name=paintutils.drawPixel | ||
| − | |args=[[int (type)|int]] x, [[int (type)|int]] y, [[colour ( | + | |args=[[int (type)|int]] x, [[int (type)|int]] y, [[colour (API)|colour]] colour |
|api=paintutils | |api=paintutils | ||
|returns=To complete | |returns=To complete | ||
| Line 10: | Line 10: | ||
{{Example | {{Example | ||
|desc=This code will draw a pixel in red colour at the position (10, 8) | |desc=This code will draw a pixel in red colour at the position (10, 8) | ||
| − | |code=image = [[paintutils.drawPixel | + | |code=image = [[paintutils.drawPixel]](10, 8, [[colour (API)|colour]].red) |
}} | }} | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] | ||
Revision as of 08:14, 29 March 2013
| Draw a pixel on the screen | |
| Syntax | paintutils.drawPixel(int x, int y, colour colour) |
| Returns | To complete |
| Part of | ComputerCraft |
| API | paintutils |
Examples
| This code will draw a pixel in red colour at the position (10, 8) | |
| Code |
image = paintutils.drawPixel(10, 8, colour.red) |