Image loader with progress based on https://github.com/mrdoob/three.js/blob/master/src/loaders/ImageLoader.js
- Source:
Methods
-
<static> load(url, onLoad, onProgress, onError)
-
Load an image with XMLHttpRequest to provide progress checking
Parameters:
Name Type Description urlstring An image url onLoadfunction On load callback onProgressfunction In progress callback onErrorfunction On error callback - Source:
Returns:
- DOM image element- Type
- HTMLImageElement