1.0.3 • Published 10 years ago

canvas-progress-bar v1.0.3

Weekly downloads
8
License
-
Repository
github
Last release
10 years ago

canvas-progress-bar

a progress-bar created with canvas.

code taken from this tutorial

var bar = requrie('canvas-progress-bar')

bar.progess(0.8) //80%

//bar is a canvas element that you can add to the DOM.
document.body.appendChild(progess)

or, if running in nodejs

bar.pngStream().pipe(fs.createWriteStream('progress.png'))

the progress bar looks like this:

50%

License

MIT