docs: function startIdle() {
          var idleCount = 0;
  
          function idle() {
  
              coordinates.push({
                  t: 1,
                  x: lastX,
                  y: lastY
              });
              idleCount++;
              if (idleCount > 10) {
                  clearInterval(idleInterval);
              }
          }
          idle();
          idleInterval = setInterval(idle, 1000);
      }