LittleJS 1.28.0

UISystem

UITile

UITile - A UI object that displays a tile image

Extends UIObject

Constructor

new UITile(pos, size, tileInfo, color, angle, mirror)uiSystem.js:1508

Create a UITile object

pos Vector2
size Vector2
tileInfo TileInfo
color Color optional, default WHITE
angle number optional, default 0
mirror boolean optional, default false

Members

Inherited from UIObject

Members

angle : numberuiSystem.js:1529

Angle to rotate in radians

mirror : booleanuiSystem.js:1531

Should it be mirrored?

Tile image to use