Image loader with progress based on https://github.com/mrdoob/three.js/blob/master/src/loaders/ImageLoader.js
- Source:
Methods
(inner) load(url, onLoad, onProgress, onError)
- Source:
Load image
Example
PANOLENS.ImageLoader.load( IMAGE_URL )
Parameters:
Name | Type | Description |
---|---|---|
url |
string | An image url |
onLoad |
function | On load callback |
onProgress |
function | In progress callback |
onError |
function | On error callback |