Jump to content

Activities/Turtle Art/Getting started: Difference between revisions

From Sugar Labs
Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 62: Line 62:
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>

Revision as of 20:39, 1 March 2011

Getting Started

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 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