home *** CD-ROM | disk | FTP | other *** search
- to "poly :d :a
- forward :d
- right :a
- poly :d :a
- end
-
- to "circle :x :y :radius
- local "amt
- local "pi
- make "pi 3.14159
- make "amt :radius * :pi / 180
- pu setxy :x :y setx xcor - :radius
- setheading 0 pd
- repeat 360 [fd :amt rt 1]
- pu setxy :x :y
- end
-
- to "pi
- output 3.14159
- end
-
- :x :y setx xcor - :radius
- setheading 0 pd
- repeat 360 [fd :amt rt 1]
- pu setxy :x :y
- end
-