<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>4857</id>
  <path>/www/nrich/html/content/id/4857/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://nrich.maths.org/8045&quot;&gt;First Forward Into Logo&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Previous:&lt;/strong&gt;&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=4859&amp;amp;part=&quot;&gt; FF8&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
In FF7 you looked at the following procedures and were invited to alter them at your leisure:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
TO POLY :N&lt;br&gt;&lt;/br&gt;
REPEAT :N [FD 45 RT 360/:N]&lt;br&gt;&lt;/br&gt;
END&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
TO POLY :N :M&lt;br&gt;&lt;/br&gt;
REPEAT :N [FD :M RT 360/:N]&lt;br&gt;&lt;/br&gt;
END&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now...two activities:&lt;/p&gt;
&lt;p&gt;Activity one:&lt;br&gt;&lt;/br&gt;
Consider REPEAT 5 [ FD 100 RT 144] .........what do you think this means? Try to imagine what is happening before entering the procedure into a machine. Imagine being the &amp;#39;turtle&amp;#39; that creates the graphic....how many times does it turn? Through how many degrees has it turned when it has finished the procedure?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Activity two:&lt;br&gt;&lt;/br&gt;
Consider the procedure below. What do you think is happening? Talk through with your friends what you think the procedure is all about. Only then enter it into a machine and experiment with it.&lt;br&gt;&lt;/br&gt;
TO GAZE :M :N&lt;br&gt;&lt;/br&gt;
REPEAT :N [ FD :M LT 720/:N]&lt;br&gt;&lt;/br&gt;
END&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Try GAZE 100 5;&lt;br&gt;&lt;/br&gt;
GAZE 120 7;&lt;br&gt;&lt;/br&gt;
GAZE 200 9;&lt;br&gt;&lt;/br&gt;
GAZE 50 8 (Beware maybe not what you think!)&lt;br&gt;&lt;/br&gt;
Okay then what about GAZE 150 12?&lt;br&gt;&lt;/br&gt;
GAZE 250 16?&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;table style=&quot;&quot; border=&quot;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;mdo:image alt=&quot;stars&quot; height=&quot;214&quot; src=&quot;logo9.gif&quot; width=&quot;538&quot;&gt;&lt;/mdo:image&gt;&lt;/td&gt;
&lt;td&gt;Alternatively, you might like to write a procedure for any of these shapes. Walk them first - either in your mind or in the playground.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;You might also be interested in how the shapes were flled with colour.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;This needs two new commands:&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;SETFLOODCOLOUR [:red :green :blue].&lt;/div&gt;
&lt;div&gt;This works in a similar way to SETPC described in FF3.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;FILL&lt;/div&gt;
&lt;div&gt;This is the command that you use to fill your shape with the &quot;Flood Colour&quot; .&lt;/div&gt;
&lt;div&gt;One word of warning - you have to be inside the shape to fill it!&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Next:&lt;/strong&gt;&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=1542&amp;amp;part=&quot;&gt; FF10&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML/>
  <clueXML/>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>First Forward into Logo 9: Stars</title>
  <description>Turn through bigger angles and draw stars with Logo.</description>
  <spec_group>2D Geometry, Shape and Space
    <specifier>Angle properties of shapes</specifier>
  </spec_group>
  <spec_group>Information and Communications Technology
    <specifier>Logo</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Practical Activity</specifier>
  </spec_group>
</resource>