Activities/Turtle Art/Patching: Difference between revisions

No edit summary
Line 5: Line 5:


[[Image:Turtleart with sqrt.png|thumb|left|400px|Using sqrt in TurtleArt]]
[[Image:Turtleart with sqrt.png|thumb|left|400px|Using sqrt in TurtleArt]]
[[Image:Sqrt.gif|thumb|left|sqrt.gif]]
 
[[Image:Numbersgroup.gif|thumb|left|The numbers palette]]
[[Image:Numbersmask.gif|thumb|left|The mask used for selecting bricks]]
[[Image:Numbersgroup-es.gif|thumb|left|The Spanish version]]
<div class="visualClear"></div>
<div class="visualClear"></div>


Line 23: Line 20:
   'sqrt':    (('num',True,0,20),('num',False,42,20)),
   'sqrt':    (('num',True,0,20),('num',False,42,20)),
* Finally, I had to create a graphic for the brick (images/en/numbers/sqrt.gif) and modify the panel for numbers (images/en/numbers/numbersgroup,gif and numbersmask.gif). I made similar changes to the Spanish version (images/es).
* Finally, I had to create a graphic for the brick (images/en/numbers/sqrt.gif) and modify the panel for numbers (images/en/numbers/numbersgroup,gif and numbersmask.gif). I made similar changes to the Spanish version (images/es).
[[Image:Sqrt.gif|thumb|left|sqrt.gif]]
[[Image:Numbersgroup.gif|thumb|left|The numbers palette]]
[[Image:Numbersmask.gif|thumb|left|The mask used for selecting bricks]]
[[Image:Numbersgroup-es.gif|thumb|left|The Spanish version]]
<div class="visualClear"></div>
* I ran the modified Turtle Art program and made changes until I managed to get it working properly—i.e., I debugged my code. At one point, I sent email to the maintainer with a question, which he promptly answered.
* I ran the modified Turtle Art program and made changes until I managed to get it working properly—i.e., I debugged my code. At one point, I sent email to the maintainer with a question, which he promptly answered.
* In order to push my changes upstream so that others can use them, first I needed to get a local copy of the source code
* In order to push my changes upstream so that others can use them, first I needed to get a local copy of the source code