Learn to Program with ZedLX

Free Online Programming Course for Beginners

Introduction [10/10]

Run the program to see the animation.

The source code uses some features that will remain unexplained.

Let's make some small changes to the source code.

Important Note:
Remember that names are case-sensitive. For example, purple is not the same as PuRpLe, Purple or PURPLE.

Exercises:

  1. Change the color of the disc to purple.
    [Run the program]

  2. Change the sleepMs statement by replacing the number 0 with 500. This will display each step of the animation separately.
    [Run the program]

Loading...