Difference between revisions of "Activities/Turtle Art/Getting started"

From Sugar Labs
Jump to navigation Jump to search
Line 24: Line 24:
 
===Displaying things===
 
===Displaying things===
 
<gallery>
 
<gallery>
File:Hello world.jpg|Using 'print' with text
+
File:Hello world.jpg|Use 'print' to display in the print window
File:TA-text.png|'show' block used to display text
+
File:TA-text.png|'show' block used to display at the turtle
 
File:TA-image.png|'show' an image or video
 
File:TA-image.png|'show' an image or video
 
File:Showcamera.jpg|'show' the camera output
 
File:Showcamera.jpg|'show' the camera output
 
File:Showsound.jpg|'show' plays sounds as well
 
File:Showsound.jpg|'show' plays sounds as well
File:Printnumber.jpg|'print' and 'show' can display numbers including results of calculations
+
File:Printnumber.jpg|'print' and 'show' can display text or numbers including results of calculations
File:Stringsandnumbers.jpg|'print' or 'show' text and numbers, ('+' also joins text)
+
File:Stringsandnumbers.jpg|'print' or 'show' mixed text and numbers, using '+'  
 
File:Speech.jpg|Text to speech. Load the Python block with the inbuilt sample code <i>speak.py</i>
 
File:Speech.jpg|Text to speech. Load the Python block with the inbuilt sample code <i>speak.py</i>
 
</gallery>
 
</gallery>

Revision as of 19:50, 1 March 2011

Getting Started

Screenshot of "Turtle Art Activity" getting started.png

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.

You add blocks to your program by clicking on or dragging them from the palette to the main area. You can delete a block by dragging it back onto the palette. Click anywhere on a "stack" of blocks to start executing that stack or by clicking in the Rabbit (fast) , Turtle (slow) or Bug (debug) buttons Rabbitturtle.jpg on the Project Toolbar.

The basics

Drawing shapes

Displaying things

Boxes, Stacks and the Heap

(aka variables, subroutines and the stack)

Mathematics

Keyboard, mouse and sensor input