Function of Game
game.texture
Returns a new texture of width by height pixels, see-through until drawn on, for a pack's block or item.
game.texture(width: number, height: number) → Texture
Parameters
widthnumberheightnumberReturns
TextureUsed in
local side = game.texture(16, 16)Custom blocks| `ui.image{}` | a picture | `image` (a `game.texture`), `color` (a tint) |Layoutspack, or a `game.texture`; `detail = 2` has four times the pixels. OrDialogslocal ingot = game.texture(16, 16) -- a picture drawn in code, or a PNG file in the packItemslocal t = game.texture(16, 16) -- see-through until drawn onItems