An example of the drawing API line object used as a progress bar
Though why not just use
the Horizontal Progress Bar
?!
[No canvas support]