Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Simple Motion [2/10]

The clearScr function resets the text output position to the the top left corner. As a consequence, the last println statement of this program outputs the text at the top left corner.

The clearScr function also sets the default background color. By default, the default background color is black. The println statement uses the default background color for text output.

Change all the clearScr function calls into fillScr function calls to observe the difference.