onAnimationFrame method

void onAnimationFrame(
  1. double time,
  2. int frame
)

Implementation

void onAnimationFrame(double time, int frame) {
  animationLoop(time, frame);
  requestId = context.requestAnimationFrame(onAnimationFrame);
}