paintutils.drawPixel

From ComputerCraft Wiki
Revision as of 13:10, 25 April 2014 by Dan200 (Talk | contribs)

Jump to: navigation, search


Grid Redstone.png  Function paintutils.drawPixel
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

Grid paper.png  Example
Draws a red pixel at the position (10, 8).
Code
paintutils.drawPixel(10, 8, colors.red)