Skip to content

Function: loadImages() ​

ts
function loadImages(urls, load?): Promise<Map<string, CanvasImage>>;

Load images for drawing (in the browser, with crossOrigin = "anonymous" so the canvas can still be exported; the server must allow it). Images that fail are left out. Pass your own load elsewhere, e.g. loadImage from a Node canvas package.

Parameters ​

ParameterTypeDefault value
urlsreadonly string[]undefined
load(url) => Promise<CanvasImage>browserImage

Returns ​

Promise<Map<string, CanvasImage>>

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).