love / 11.3 / texture-getwidth.html /

Texture:getWidth

Gets the width of the Texture.

Function

Synopsis

width = Texture:getWidth( )

Arguments

None.

Returns

number width
The width of the Texture, in pixels.

See Also


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Texture:getWidth