Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Simple Motion [8/10]

One way to make the disc move in the opposite direction is to make a slight modification to the first argument of the disc procedure call.

* * *

-- The clearScr Procedure --

The clearScr procedure can be called with two optional arguments. The first argument sets the global background color, and the second argument sets the global foreground color.

Exercise:

Change the global colors by adding a new statement at the start of the source code:

clearScr(/white, /magenta);

Loading...