[Gfx2Texture]|[nil] texture = gfx2.createImage(width, height)


Creates a texture with the specified width and height

Parameters


width

integer

the width of the texture

height

integer

the height of the texture

Return Value


texture

Gfx2Texture | nil

The created texture or nil