LOGO Programming


Polygons

One of the easiest things to do in logo is use the turtle to draw various polygons. You can notice that in order to draw a closed polygon, the turtle has to walk around the edges, eventually turning through 360 degrees before coming back home. Since the turtle makes N turns for an N-sided polygon, the size of each turn in 360/N degrees.x-3gp-video converter cracks

Triangle (3 sides)
Turtle Turns 120º

go 40 
RT 120
go 40 
RT 1200
go 40

x-3gp-video converter cracks

Square (4 sides)
Turtle Turns 90º

go 40 
RT 90
go 40 
RT 90
go 40 
RT 90
go 40

x-3gp-video converter cracks

Pentagon (5 sides)
Turtle Turns 72º

;

x-3gp-video converter cracks

Hexagon (6 sides)
Turtle Turns 60º

;

x-3gp-video converter cracks

Septagon (7 sides)
Turtle Turns 51º

go 40 
RT 51
go 40 
RT 51
go 40 
RT 51
go 40 
RT 51
go 40 
RT 51
go 40 
RT 51
go 40 

x-3gp-video converter cracks

Octagon (8 sides)
Turtle Turns 45º

;