Learn to Program with ZedLX

Free Online Programming Course for Beginners

Simple Motion [4/10]

This program draws one animation frame in each iteration of the for loop.
[Run the program]

The clearScr procedure clears the screen to the global background color when called without a color argument.

The global background color is black, initialy.

Exercise:

  1. Change the argument of the sleepMs procedure call so that it pauses for 500 milliseconds.

Loading...