Options
All
  • Public
  • Public/Protected
  • All
Menu

Loads an image into an HTMLImageElement and provides access to it.

Example

const texture = new Texture('assets/images/tilesheet.png')

Hierarchy

  • Texture

Index

Constructors

Properties

Constructors

constructor

  • new Texture(url: string): Texture

Properties

img

img: HTMLImageElement

The loaded image.