img-tile
tile an
<img>
from a given width and height
const tile = const load =
usage
tile(image, width, height) -> images
Splits the given image
into individual <canvas>
elements of the dimensions described by width
and height
.
image
: TheHTMLImageElement
to be splitwidth
: The desired width of each resulting<canvas>
elementheight
: The desired height of each resulting<canvas>
element