[ Home | About | What's New | Email | Franšais ]

Previous Index Next

Mswlogo downloads

Simple Animations

 

Simple animation can be made in logo using the following methods:

 

-         Rotating an object in 2D
-         Rotating an object in 3D

-         Creating an animated gif file

 

Rotating an object in 2D

 

Step 1: An object is drawn

Step 2: The Computer waits some milliseconds

Step 3: The object is erased

Step 4: The turtle moves

Step 5: Go back to step 1 until completion

 

In the example below the computer rotates a pentagon:

 

TO pentagon

CS REPEAT 360 ~

[

PENERASE 

REPEAT 5 [FD 100 RT 72] 

RT 1  

PENPAINT 

REPEAT 5 [FD 100 RT 72] 

WAIT 1

]

END

 

Rotating an object in 3D

 

Step 1: An object is drawn in 3D

Step 2: The Computer waits some milliseconds

Step 3: The turtle is repositioned

Step 4: The Screen is cleared but the turtle is not reset

Step 5: Go back to step 1 until completion

 

In the example below the computer rotates a box:

 

TO BOX

PERSPECTIVE

CS REPEAT 30 ~

[

SETTURTLE -1 

ARC2 12 1000 

SETTURTLE 0 

CS 

REPEAT 4 ~

REPEAT 4 [FD 100 RT 90] 

FD 100 

DOWN 90 

WAIT 3

]

WRAP

END

 


Logo Users Ring
Previous 5 Logo Spoken Here: Ring Home Join Statistics Ring Home
Next 5
Random Site
List Sites
pages viewed since January 19 2002
Previous Index Next