Circular progress indicator using canvas.
$ npm install progress-component
var Progress = require('progress');
var progress = new Progress;
document.body.appendChild(progress.el);
var n = 0;
var id = setInterval(function(){
if (n == 100) clearInterval(id);
progress.update(n++);
}, 50);
Update the indicator to n
and re-draw.
Change the font to family
.
Change the font size to n
.
Change the indicator diameter to n
, defaults to 50.
MIT