Interface: ImageLoader

ImageLoader

Creates assets by loading images.

Methods

loadImage(url, rectnullable, done) → {function}

Loads an Asset from an image.

Parameters:
Name Type Attributes Description
url string

The image URL.

rect Rect <nullable>

A Rect describing a portion of the image, or null for the full image.

done function

The callback.

Returns:

A function to cancel loading.

Type
function