paintutils.drawPixel

From ComputerCraft Wiki
Revision as of 13:43, 18 July 2013 by Cranium (Talk | contribs) (Changing int to number)

Jump to: navigation, search


Grid Redstone.png  Function paintutils.drawPixel
Draw a pixel on the screen
Syntax paintutils.drawPixel(number x, number y, number color)
Returns nil
Part of ComputerCraft
API paintutils

Examples

Grid paper.png  Example
This code will draw a red pixel at the position (10, 8)
Code
image = paintutils.drawPixel(10, 8, colors.red)