Texture

$e. Texture

new Texture(name, srcs, size, time, loop)

Source:
Texture - Creates a Texture object with optional animations
Parameters:
Name Type Description
name string The name of the texture
srcs Array.<string> The paths to all the textures
size Vector2 The size of the texture
time number The duration of the animation
loop bool Set to make a loo

Methods

getTexture() → {image}

Source:
Texture.getTexture - Returns the current Texture.
Returns:
The image element
Type
image