Type String Object TextureResource Library graphics.* Revision Release 2024.3703 See also texture.filename texture.baseDir TextureResource
This property indicates the type of texture.
local texture1 = graphics.newTexture( { type="image", filename="background.png" } ) print( texture1.type ) --> "image"
local texture2 = graphics.newTexture( { type="canvas", width=128, height=128 } ) print( texture2.type ) --> "canvas"