Difference between revisions of "Paintutils.drawPixel"
From ComputerCraft Wiki
| Line 6: | Line 6: | ||
|returns=None | |returns=None | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| − | |desc=Draw a pixel on the screen at ''x'' and ''y'' | + | |desc=Draw a pixel on the screen at ''x'' and ''y'', with color ''color''. Note that the cursor will be moved and background color will be changed by this function. |
|examples= | |examples= | ||
{{Example | {{Example | ||
Revision as of 13:10, 25 April 2014
| Draw a pixel on the screen at x and y, with color color. Note that the cursor will be moved and background color will be changed by this function. | |
| Syntax | paintutils.drawPixel(number x, number y, number color) |
| Returns | None |
| Part of | ComputerCraft |
| API | paintutils |
Examples
| Draws a red pixel at the position (10, 8). | |
| Code |
paintutils.drawPixel(10, 8, colors.red) |