Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Simple Motion [2/10]

The clearScr procedure 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.
[Run the program]

The clearScr procedure 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.

Exercise:

Change both clearScr procedure calls into fillScr procedure calls to observe the difference.

Loading...