EZ Math Movie, Tutorials, Turtle Graphics, right and left


right

The command right spins the turtle toward its right a certain number of degrees. The turtle spins in place. The location of the turtle does not change as it spins.

This code spins the turtle 90 degrees to the right:

right(90);

right(90);

right(90) animation

left

The command left works just like the command right, except it spins the turtle to the left.

The following code would turn the turtle 90 degrees to the left:

left(90);

left(90);

left(90) animation

Running the example program

You can make designs by moving the turtle using the commands home, forward, back, right, and left. Our example program creates a very simple design with these commands.

left(90) animation

The example program

0ptions
Angle measurement: Degrees Radians

Go on input

Bounds:
Sorry, apparently this browser does not support HTML 5 canvas tag graphics.
Printer

Edit: Runtime          View: Starter Suggestion

To runtime:

Storage:

Editor width: Normal Wide


		

	


		

	


		

	

And....

Next tutorial: Drawing a square

 

Here is a link to a related article at EZ Programing Demos:

Moving around


All contents of EZ Math Movie are copyrighted: Copyright 2011, Edward A. Zobel. All rights reserved.



Other sites you may find interesting

Zona Land Education Like Math and Physics?

Zona Land Education offers explanations, diagrams, and animations on these topics.
And it is all presented in a clear and casual manner.

Here is the link: zonalandeducation.com




EZ Programing Demos Want to learn about programing computers?

EZ Programing Demos has an animated, slow motion, interactive programing language demonstrator.
The site presents basic ideas at a beginner's level.

Here is the link: ezprogramingdemos.com



Custom Search

Name:
Domain:

Name
0


Name:
Name
0