https://github.com/vanng822/canvas-timer
Time's up using canvas, support pie-timer and bar-timer
https://github.com/vanng822/canvas-timer
Last synced: about 2 months ago
JSON representation
Time's up using canvas, support pie-timer and bar-timer
- Host: GitHub
- URL: https://github.com/vanng822/canvas-timer
- Owner: vanng822
- License: mit
- Created: 2012-10-06T15:48:56.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-19T19:05:02.000Z (over 10 years ago)
- Last Synced: 2025-01-18T05:27:42.445Z (3 months ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Canvas timer
Time's up using canvas, support pie-timer and bar-timer
## Example
var timer = new CanvasPieTimer(1000, 30000, 26, 26, function() {
console.log('Time to party');
}, function(timeElapsed) {
console.log(timeElapsed);
});
var timer = new CanvasBarTimer(1000, 20000, 100, 26, function() {
console.log('Time to party');
}, function(timeElapsed) {
console.log(timeElapsed);
});
###