Difference between revisions of "Paintutils.drawPixel"
From ComputerCraft Wiki
m (colours, not colour) |
m (Int -> {{type|number}}) |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=paintutils.drawPixel | |name=paintutils.drawPixel | ||
| − | |args=[[int (type)|int]] x, | + | |args=[[int (type)|int]] x, {{type|number}} y, {{type|number}} colour |
|api=paintutils | |api=paintutils | ||
|returns=nil | |returns=nil | ||
Revision as of 00:38, 12 July 2013
| Draw a pixel on the screen | |
| Syntax | paintutils.drawPixel(int x, number y, number colour) |
| Returns | nil |
| Part of | ComputerCraft |
| API | paintutils |
Examples
| This code will draw a red pixel at the position (10, 8) | |
| Code |
image = paintutils.drawPixel(10, 8, colours.red) |