texture.wrapX

Type String
Object TextureResourceBitmap
Library graphics.*
Revision Current Public Release (2017.3135)
See also TextureResource
TextureResourceBitmap
display.setDefault()
texture.wrapY

Overview

Indicates the horizontal wrap mode for a texture: "clampToEdge", "repeat" or "mirroredRepeat".

Example

display.setDefault( "textureWrapX", "repeat" )
display.setDefault( "textureWrapY", "mirroredRepeat" )

-- Create "TextureResource" object of type "TextureResourceBitmap"
local texture = graphics.newTexture( { type="image", filename="background.png" } )

print( texture.wrapX )  --> "repeat"
print( texture.wrapY )  --> "mirroredRepeat"