Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Turtle Graphics [2/12]

The command SKIP(20) moves the pen forward by 20 pixels, but without leaving a trail.

The command SKIP is implemented as a user-defined procedure. The signature of this procedure is:

  • void SKIP(
    • num distance
    • )

The signature of user-defined procedure SETCOLOR is:

  • void SETCOLOR(
    • color cl
    • )

Procedures don't return a value, which is indicated by the keyword void. This allows procedures to be used as statements, and in this usage they can be called commands.

Loading...