Listing 2. The animation loop.
while(!key[KEY_ESC]){ while(mouseInfo(&xCoor,&yCoor,&color)){ //Draw while mouse button is down. draw(xCoor,yCoor,screenBuf,color); }//end while }//end while return 0; }//end main END_OF_MAIN();