[MWForum]Circle and arc help
Daniel Ajoy
mwforum@lists.mathcats.com
Wed, 16 Feb 2005 17:42:57 -0500
On 15 Feb 2005 at 11:15, Trimbach, Traci wrote:
> That page contained four commands: arcr, arcl, circler, and
> circlel. These commands used pi to calculate the size of circle and arc
> to draw based on the input you used with the command. So far I have not
> been able to find any commands like that so my students have been
> drawing circles using repeat statements. What different ways can you
> draw circles in MicroWorlds?
Hi Traci,
I found these procedures in my Apple Logo book. You can put them in
the -tools-.txt file as suggested:
to rcircle :r
repeat 36 [rcp :r]
end
to rarc :r
repeat 9 [rcp :r]
end
to rcp :r
right 5
forward :r * (3.14159) / 18
right 5
end
to lcircle :r
repeat 36 [lcp :r]
end
to larc :r
repeat 9 [lcp :r]
end
to lcp :r
left 5
forward :r * (3.14159) / 18
left 5
end
Daniel
OpenWorld Learning
http://mia.openworldlearning.org