欢迎来到天天文库
浏览记录
ID:52540522
大小:137.00 KB
页数:31页
时间:2020-04-09
《如果用下面的程序指挥小海龟.ppt》由会员上传分享,免费在线阅读,更多相关内容在PPT专区-天天文库。
1、前进:FD右转:RT100?fd100rt90?fd100rt90?fd100rt90?fd100rt90100200100300100100后退:BK左转:LT100?BK100?LT90?BK100?LT90?BK100?LT90?BK10010060º30º120º10060ºFDBKRTLTCSPDPU如果用下面的程序指挥小海龟,可以得到什么图形??fd100rt120?fd100rt120?fd100rt120?fd100rt90?fd100rt90?fd100rt90?fd100rt90?fd100rt72?fd100rt72?fd100rt72?fd100rt
2、72?fd100rt72?fd100rt60?fd100rt60?fd100rt60?fd100rt60?fd100rt60?fd100rt60正三角形3120120×3=360正方形49090×4=360正五边形57272×5=360正六边形66060×6=360……………………正:N边形:N360/:N正三十六边形361010×36=360如果要画个圆,得重复多少次?如果有一条专门用来重复的命令就好了?重复命令:repeat?repeat重复次数[重复的内容]?repeat4[fd100rt90]?fd100rt90?fd100rt90?fd100rt90?fd100r
3、t90正三角形正方形正五边形正六边形?repeat4[fd100rt90]?repeat3[fd100rt120]?repeat5[fd100rt72]?repeat6[fd100rt60]试着画个圆。重复命令:repeat?repeat重复次数[重复的内容]?repeat360[fd1rt1]等待:WAIT?WAIT时间笔擦:PE?PE?Repeat4[fd100rt90wait100]?PERepeat4[fd100rt90wait100]?repeat360[fd1rt1wait10]五角星REPEAT5[FD100 RT144wait100]八角星REPEAT8[
4、FD100 RT135wait100]?Repeat5[fd100rt144wait100]隐龟:HT显龟:ST?HT?ST闪耀着的八角星?REPEAT8[FD100 RT135]?HTREPEAT8[REPEAT8[FD100RT135]WAIT100CSWAIT100]五角星REPEAT5[FD100 RT144]八角星REPEAT8[FD100 RT135]九角星REPEAT9[FD100 RT80]九角星REPEAT9[FD100 RT160]?REPEAT8[FD100RT135]CS?REPEAT8[FD100RT135]CSWAIT100WAIT1
5、00?REPEAT80[REPEAT8[FD100RT135]CSWAIT100WAIT100]?repeat8[pdrepeat360[fd0.5rt1]repeat360[fd1rt1]repeat360[fd2rt1]wait100perepeat360[fd0.5rt1]repeat360[fd1rt1]repeat360[fd2rt1]wait100]
此文档下载收益归作者所有