PixelDisplay.clear

From MiniScript Wiki
Jump to navigation Jump to search

PixelDisplay.clear clears, resets, and resizes this pixel display.

Arguments

Parameter Name Type Default Value Meaning
color color color.clear color to fill the display with
width number 960 new display width
height number 640 new display height

Usage Notes

In addition to clearing the color and setting the size, this method also resets the scale to 1, and scrollX and scrollY to 0. If you wish to clear only the color without resetting scale and scroll, use something like:

gfx.fillRect 0, 0, gfx.width, gfx.height, myColor