textures

The global instance of the TextureAPI
field signature:
textures
Method Property Fluent Description Representation
Field Type a TextureAPI

TextureAPI.get

Gets a registered texture based on its name, or nil if no texture was found with that name
overload 1:
textures:get(name)
Method Property Fluent Description Representation
name accepts a String
Return Value either a Texture or nil

TextureAPI.read

Reads a texture from a base64 string or a byte array
overload 1:
textures:read(name, base64Text)
Method Property Fluent Description Representation
name accepts a String
base64Text accepts a String
Return Value a Texture
overload 2:
textures:read(name, byteArray)
Method Property Fluent Description Representation
name accepts a String
byteArray accepts a table
Return Value a Texture

TextureAPI.copy

Creates a copy of the texture
The copy is registered with the given name
overload 1:
textures:copy(name, texture)
Method Property Fluent Description Representation
name accepts a String
texture accepts a Texture
Return Value a Texture

TextureAPI.fromVanilla

Returns a copy of a resource texture as a texture object for modifying
overload 1:
textures:fromVanilla(name, path)
Method Property Fluent Description Representation
name accepts a String
path accepts a String
Return Value a Texture

TextureAPI.newTexture

Creates a new texture with the given name, width and height
The texture is filled with a solid color
overload 1:
textures:newTexture(name, width, height)
Method Property Fluent Description Representation
name accepts a String
width accepts an Integer
height accepts an Integer
Return Value a Texture

TextureAPI.getTextures

Returns a table with all textures used by this avatar
Do not include generated textures from this API
overload 1:
textures:getTextures()
Method Property Fluent Description Representation
Return Value a table
a a