[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> Total Turtle Trip



>  * If you want your students to use the computer to visualize the
>definition of a circle (all the points that are equidistant from a given
>center), you don't have to use a polygon.  Another way would be to write a
>simple program that draws dots around a center: each step would go forward
>with the pen up, draw a dot, go back, and turn.  As the number of dots
>increases, the collection looks more and more like a circle.  When the dots
>are denser than the size of a pixel, you get a perfect circle -- or as
>perfect as you can get on a computer screen.
>
>

Chuck ==>

Here's a procedure that does just what you stated above. Other than some
added steps, how does this differ from the polygon procedure? It's still FD
1, RT 1 repeated for as many times as required to draw a line equidistant
from a center.

TO CIRCLE :SIDE
HOME CS PU
REPEAT 360 [FD :SIDE POINT BK :SIDE RT 1]
END

TO INFO
; CHAPTER 7 POLYGONS, CIRCLES, STARS, AND STUFF
; HOW DO YOU DRAW A  CIRCLE THAT FITS THE CLASSIC
; DEFINITION OF A CIRCLE: A CURVED LINE WHERE ALL POINTS
; ON THE LINE ARE THE SAME DISTANCE FROM A CENTRAL POINT.
; TYPE CIRCLE AND A RADIUS TO SEE.
;;
PR [SEE THE INFO PROCEDURE FOR MORE INFORMATION.]
END

TO POINT
PD RT 90 FD 1 
BK 1 LT 90 PU
END

Make "startup [INFO]

Regards...Jim


>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>
Jim Muller
jmul@cyberramp.net
The Great Logo Adventure at
http://www.cyberramp.net/~jmul
>+>+>+>+>+>+>+>+>+>+>+>+>+>+>+>
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home