Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Time and Animation [2/9]

This program draws a disc moving at a speed of 100 pixels per second.

The screen image might be unstable. This happens because the computer will sometimes refresh the screen before the program has finished drawing the image.

If, for demonstrational purposes, the screen image is not sufficiently unstable , try decreasing the argument of the sleepMs function to value 0.03.

Loading...