paintutils.drawPixel
From ComputerCraft Wiki
Function paintutils.drawPixel | |
Draw a pixel on the screen at x and y. If color is specified then draws the pixel using that color, otherwise uses last color set by term.setBackgroundColor. Note that it doesn't reset the background color. | |
Syntax | paintutils.drawPixel(number x, number y [, number color]) |
Returns | None |
Part of | ComputerCraft |
API | paintutils |
Examples
Example | |
Draws a red pixel at the position (10, 8). | |
Code |
paintutils.drawPixel(10, 8, colors.red) |