I have a JPEG image consisting of handedly-sketched contours of a city. I want to achieve a slowly-sketching effect drawing these contours on an empty area from left to right. How can I do that based on the HTML5 canvas element? Something like importing this JPEG into the canvas an applying some animated mask on it or alternatively re-factoring the JPEG into a set of curves (if it's possible I'd like to get a list of appropriate tools) and drawing these lines by using the simple-stupid ctx.lineTo(...) and other curve functions.
Thank you in advance.