Table of Contents

Available since version: Gideros 2011.6


Creates a new Texture object.

Syntax:, filtering [, options])


  • filename: (string) The name of the texture file to be loaded.
  • filtering: (boolean, default = false) Whether or not the texture is filtered.
  • options: (table, optional) A table that specifies optional paramaters. Currently, "transparentColor", "wrap", "format" and "extend" fields are supported.


local texture ="image.png", false, {transparentColor = 0xff00ff})	-- do not filter and make the color 0xff00ff transparent
local texture ="image.png", true, {wrap = Texture.REPEAT})	-- enable filtering and repeat the texture