EZ Programing Demos

Slow motion, step by step, animated demonstrations of basic computer programing techniques

Links to topics:

Current topic:

Pen up and down

The turtle can move without drawing a line. If you tell the turtle to lift its pen up, then it will move without drawing. You can command it to drop its pen down when you want it to start drawing again.

 Slow  Medium  Fast 
Click 'Run' to go.

When you want to move the turtle over to a location in your diagram, but you do not want to draw a line as you move it, then lift the pen up, steer the turtle to its new spot, and once there drop the pen down and continue drawing.

This technique is exactly how you would make a pencil and paper diagram. Certainly you would often lift the pencil off the paper, and then place it back down at a different place. In this way you would draw the different parts of your diagram.

 

Here is a flowchart for this turtle demo:

 

In an imaginary computer language the code could look like this:

    
    lt(45);
    fd(4);
    pu();
    fd(4);
    pd();
    fd(4);
    

 

Suggested next article:

At EZ Math Movie

EZ Math Movie is a site that can help you experiment with and understand many topics in mathematics. Its main feature is an interactive animated (x, y) graph that you control with an actual programing language. There are many examples and tutorials, and EZ Math Movie is crossed referenced with both EZ Programing Demos and Zona Land Education.

 

Zona Land Education is a site with explanations and interactive diagrams covering many topics in physics and mathematics. Zona Land Education is cross referenced with EZ Math Movie, and it contains several animations that use EZ Math Movie's programing language.