Difference between revisions of "TileDisplay.clear"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "The <c>clear</c> method of <c>TileDisplay</c> clears the whole display to a given tile index, or <c>null</c>. == Example == The following example configures displa...")
 
(No difference)

Latest revision as of 02:09, 19 January 2021

The clear method of TileDisplay clears the whole display to a given tile index, or null.

Example

The following example configures display 5 to be a TileDisplay, then clears it to index 20.

display(5).mode = displayMode.tile
td = display(5)
td.tileSet = file.loadImage("/sys/pics/TileShapes.png")
td.tileSetTileSize = 64
td.clear 20