TileDisplay.setCellTint

From MiniScript Wiki
Revision as of 21:17, 7 July 2021 by JoeStrout (talk | contribs)
Jump to navigation Jump to search

TileDisplay.setCellTint sets the color tint applied at a given row and column of a tile display.

See also: TileDisplay.setCell; Sprite.tint

Arguments

Parameter Name Type Default Value Meaning
x number 0 column (or list of columns) of cell to change
y number 0 row (or list of rows) of cell to change
color string "#FFFFFF" color tint to apply (white for no tint)

Usage Notes

The given tint color is multiplied by the color of each pixel in the tile. A white tint is the same as no tint at all (equivalent to multiplying by 1.0). Tint includes alpha channel; applying a tint of color.clear makes that cell invisible. This works exactly the same way as Sprite.tint.