mercredi 11 mars 2015

Drawing canvas animation for pie on time h:m:s


Vote count:

0




How to draw a pie canvas by set time in inputs H:M:S? I have fiddle, but it works on the percentage. Please help make animation process on set time values. Thanks.



function animate(current) {
context.clearRect(0, 0, canvas.width, canvas.height);
context.beginPath();
context.arc(x, y, radius, -(quart), ((circ) * current) - quart, false);
context.stroke();
curPerc++;
if (curPerc < endPercent) {
requestAnimationFrame(function () {
animate(curPerc / 100)
});
}
}


asked 33 secs ago







Drawing canvas animation for pie on time h:m:s

Aucun commentaire:

Enregistrer un commentaire