cando-imagemaps
v1.0.0
Published
TypeScript library for working with and rendering canvas-based image maps.
Downloads
1
Readme
lib-ts-imageMaps
A TypeScript library for working with and rendering canvas-based image maps.
Render Single Frame
var sprites = new ImageMaps.ImageMap(spritesImage, SPRITE_SIZE, SPRITE_SIZE);
sprites.render(canvasContext, x, y, spriteFrameIndex);
Render Text
var font = new ImageMaps.FontImageMap(fontImage, FONT_SIZE, FONT_SIZE);
font.render(canvasContext, x, y, 'Hello World!');