paintutils.drawFilledBox

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function paintutils.drawFilledBox
Draws a filled box from (startX, startY) to (endX, endY) in the specified color. Requires version 1.64 or newer.
Syntax paintutils.drawFilledBox(number startX, number startY, number endX, number endY [, number color])
Returns None
Part of ComputerCraft
API paintutils

Examples

Grid paper.png  Example
Draws a blue filled box which's top-left corner is at (3, 2) and bottom-right corner is at (15, 10).
Code
paintutils.drawFilledBox(3, 2, 15, 10, colors.blue)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox