TileDisplay.clear

From MiniScript Wiki
Revision as of 02:09, 19 January 2021 by JoeStrout (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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