How to create a Progress bar with HTML5 Canvas