TileDisplay.clear
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