let circleStart = circleAngleDirection;
let scoreFinal = scoreValue / nbquestions;
+ // For low scores, scale animation speed so it isn't too slow nor too fast...
+ animationDuration = Math.max(animationDuration / 3, animationDuration * scoreFinal);
window.circleDirection = circleSens;
if (window.circleDirection === 1) {
function updateAngle() {
// console.log('angle = ', window.angle);
- paper.clear();
+ // paper.clear();
sector(paper, paperWidth / 2, paperHeight / 2, paperRadius, donutRadius, window.angle, window.angleEnd, {
fill: color,
stroke: stroke