function anim(){
   gl.drawArrays(gl.TRIANGLE_STRIP, 2*st, 4);

   if(st++ > 100) return;
   anim();
//   requestAnimationFrame(anim);
}
The script renders 100 lines in sequence. Why with recursion I get red square but with requestAnimationFrame I get one moving line?