Svg Or Webgl. Since there is no way I know to get the vector information back from a rasterized image chances are high. Display SVG in image viewers and web browsers.
Also SVG is not supported by the Android browser until v30 which makes for a big hole in support in the current generation of mobiles. My first tech talk I did comparing SVG HTML Canvas and WebGL. But canvas is better suited to what youre doing.
What are your experiences with.
SVG is standard graphics format. SVG are native markup documents written in native webcode. But by rendering them to bitmap at load time you get the full use of the GPU to move pixels about. The SVG API which supports vector rendering and the Canvas API which supports raster rendering and can exploit GPU hardware acceleration via a browser technology known as WebGL.