Learn to Program with ZedLX

Free Online Programming Course for Beginners

Introduction [10/10]

Run the program to see the animation.

The source code has multiple features that will remain unexplained.

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

Important Note:
Remember that all 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. Replace the number 6 with the number 2 in the source code to slow down the motion.
    [Run the program]

Loading...