Texture:isCanvas

Available since LÖVE 12.0
This function is not supported in earlier versions.

Gets whether the Texture has been created with canvas capabilities via love.graphics.newCanvas or love.graphics.newTexture.

Function

Synopsis

canvas = Texture:isCanvas( )

Arguments

None.

Returns

boolean canvas
True if the Texture can be rendered to with love.graphics.setCanvas, false otherwise.

See Also

Other Languages