/canvasHotspots-depreciated

JS library for allowing "hotspots" on HTML5 Canvas

Primary LanguageJavaScript

Canvas Hotspots

Explanation

HTML5's canvas is a static element. "Hotspots" overcome this problem by providing an interactive area on a canvas element. Interaction is currently limited to displayed text and circle.

Implementation

hotspotsModule.initCanvasImg(canvasId, imagePath, padding, desiredImageWidth, hotSpotArray);

Images of Example

Example Little Hotspot

Example Big Hotspot