Guide 1 Docs 2 Reference 3

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

widthnumberrequired
heightnumberrequired

Returns

Texture

Used in