Skip to content

API reference / Common / Engine types / PaintTile

Interface: PaintTile ​

A tile (a:tile, CT_TileInfoProperties): offset, scale, flip, and anchor of the repeated image.

Properties ​

PropertyDescription
offsetX
number
@tx — horizontal offset of the first tile, in points.
offsetY
number
@ty — vertical offset of the first tile, in points.
scaleX
number
@sx — horizontal scale, as a fraction (1.0 = 100%).
scaleY
number
@sy — vertical scale, as a fraction.
flip
PaintTileFlip
@flip — mirroring applied to alternating tiles.
align
PaintRectAlign
@algn — which corner/edge the tiling anchors to.