texture.type

Type String
Object TextureResource
Library graphics.*
Revision 2017.3060
See also texture.filename
texture.baseDir
TextureResource

Overview

This property indicates the type of texture.

Examples

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"