Activities/Turtle Art/Getting started: Difference between revisions

 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Getting Started==
==Getting Started==


[[Image:Screenshot of "Turtle Art Activity" getting started.png|300px]]
There are several Turtle Art manuals:
* [http://ht.ly/gqueN]
 
[[Image:New-TA-Repeat-block.png|300px]]


Start by clicking on (or dragging) blocks from the Turtle palette. Use multiple blocks to create drawings; as the turtle moves under your control, colorful lines are drawn.
Start by clicking on (or dragging) blocks from the Turtle palette. Use multiple blocks to create drawings; as the turtle moves under your control, colorful lines are drawn.
Line 45: Line 48:
File:TA-box-eample.png|Named variables: store a variable in 'box'
File:TA-box-eample.png|Named variables: store a variable in 'box'
File:Namedstacks.jpg|Named 'stacks' of blocks can be reused
File:Namedstacks.jpg|Named 'stacks' of blocks can be reused
File:ActionBlocks.png|When a new named stack is created, a new action block is added to the palette.
File:Collapsestack.jpg|Collapse a 'stack' of blocks to save space
File:Collapsestack.jpg|Collapse a 'stack' of blocks to save space
File:Pushpop.jpg|Store data in the first in last out heap using 'push' and 'pop'
File:Pushpop.jpg|Store data in the first in last out heap using 'push' and 'pop'
File:Turtlearray.jpg|Box names (and stack names) can be boxes, in this case 10 boxes are created. This is a powerful programming feature. A one dimensional array of variables has effectively been created.
File:Turtlearray.jpg|Box names (and stack names) can be boxes, in this case (taken from the math-dice project), a one-dimensional array of 11 variables has been created.  
</gallery>
</gallery>


Line 54: Line 58:
File:Mathoperators.jpg |Math operators including + - * / mod sqrt
File:Mathoperators.jpg |Math operators including + - * / mod sqrt
File:TA-if.png|Logical operations: flow control blocks accept >, <, =, and, not, or as input  
File:TA-if.png|Logical operations: flow control blocks accept >, <, =, and, not, or as input  
File:Pie2.png|Make pie charts with 'setxy', 'arc' and 'fill'
File:Pie2.png|Make pie charts [http://wiki.sugarlabs.org/go/File:Turtle_Art_Activity_pie_chart.ta]
File:Functionblock.jpg|Use Python functions, (accepts any of the [http://docs.python.org/library/time.html time] or [http://docs.python.org/library/math.html math] library functions)  
File:Functionblock.jpg|Use Python functions, (accepts any of the [http://docs.python.org/library/time.html time] or [http://docs.python.org/library/math.html math] library functions)
File:Coordinates.png|Cartesian and polar coordinate grids
File:CM-coordinate-grid.svg|Centimeter coordinate grid (XO only)
</gallery>
</gallery>


Line 62: Line 68:
File:Keyboardinput.jpg|Reading the keyboard
File:Keyboardinput.jpg|Reading the keyboard
File:Keyboard.png|Converting the keyboard output to a string
File:Keyboard.png|Converting the keyboard output to a string
File:Entertermnumber.jpg|Entering a multi digit number, exits with the number in 'box 1',(enter = 13 terminates) [[http://wiki.sugarlabs.org/go/File:Turtle_Art_getnumber.ta]]
File:Entertermnumber.jpg|Entering a multi digit number, exits with the number in 'box 1', [[http://wiki.sugarlabs.org/go/File:Turtle_Art_getnumber.ta]]
File:Turtlemouse.jpg|Load the Python block with the sample code <i>push_mouse_event.py</i> to read mouse events
File:Turtlemouse.jpg|Load the Python block with the sample code <i>push_mouse_event.py</i> to read mouse events
File:Printloudness.jpg|Read the microphone  
File:Printloudness.jpg|Read the microphone  
File:Resistance.jpg|Read sensors plugged into the microphone socket [http://wiki.sugarlabs.org/go/Activities/TurtleArt/Using_Turtle_Art_Sensors]
File:Resistance.jpg|Read sensors plugged into the microphone socket [http://wiki.sugarlabs.org/go/Activities/TurtleArt/Using_Turtle_Art_Sensors]
</gallery>
</gallery>