Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Chapter 14

Chapter 14

Ratings: (0)|Views: 14 |Likes:
Published by Cynthia Solomon

More info:

Published by: Cynthia Solomon on May 13, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/13/2012

pdf

text

original

 
m
Chapter 14
K:';
!
w
I
 
*
 
i
 
|l
 
mm
Commands with Two Inputs:
 
Polygons and Arcs
 
Chapter 14Commands with Two Inputs: Polygons
 
and Arcs
POLY 30 90
Just as you can vary the number of steps the turtle takes, you can also vary how much it turns. In
 
fact, you can get some really beautiful and surprising designs by varying these two components
 
of the turtle’s state. The following procedure
 
takes two inputs: one which specifies the number
 
of turtle steps and one which specifies the amount
 
of turn.
TO POLY -.STEP :ANGLEFD :STEPRT :ANGLEPOLY :STEP :ANGLEEND
Now try it!
POLY 30 90
The turtle does not stop because
 poly
keeps telling it to go forward and turn. To stop
 poly
and
 
the turtle press
ctrl-g.
Logo responds
STOPPED!
?You probably will want to clear the screen (cs).Here are some suggestions for exploring
 poly.
You will no doubt want to try other inputs, too.
>
POLY
30120
POLY
3060
POLY
3072
97

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->