Loads an image into an HTMLImageElement and provides access to it.
const texture = new Texture('assets/images/tilesheet.png')
Initialize Texture object.
Relative path to image file.
The loaded image.
Loads an image into an HTMLImageElement and provides access to it.
Example
const texture = new Texture('assets/images/tilesheet.png')