I am experimenting with HTML5 Canvas for the first time, as I need to create a curved path which would look something like this:
Now what the image shows is in the first case, it's just a solid stroke path comprised of a couple of bezier curves. What I'd like to achieve is to make the path dotted in some way, and then have a certain portion of the path highlighted to illustrate progress along a path (this is for a game).
Aside from doing the mathematics for bezier bisection, plotting points along a path which I mathematically calculate (and I've read some papers which seem to show how to do this efficiently, but it seems like an overkill), I was wondering if there is some simple way to achieve this effect. Thanks!
Edit: I found this answer, dotted stroke in <canvas> but it doesn't exactly address the more complicated case I have in mind with Bezier curves. A straight line version of this would be really easy to pull off :)
Edit: Should work in IE as well