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

From Sugar Labs
Jump to navigation Jump to search
Line 44: Line 44:
 
</gallery>
 
</gallery>
  
===Keyboard and mouse input===
+
===Keyboard, mouse and sensor input===
 
<gallery>
 
<gallery>
 
File:Keyboardinput.jpg|Reading the keyboard
 
File:Keyboardinput.jpg|Reading the keyboard
Line 50: Line 50:
 
File:Entertermnumber.jpg|Getting a multi digit number [[http://wiki.sugarlabs.org/go/File:Turtle_Art_getnumber.ta]]
 
File:Entertermnumber.jpg|Getting a multi digit number [[http://wiki.sugarlabs.org/go/File:Turtle_Art_getnumber.ta]]
 
File:Turtlemouse.jpg|Load the Python block with the sample code push_mouse_event.py to read mouse events
 
File:Turtlemouse.jpg|Load the Python block with the sample code push_mouse_event.py to read mouse events
 +
File:Printloudness.jpg|read the microphone or external sensors
 
</gallery>
 
</gallery>
  

Revision as of 22:54, 28 February 2011

Getting Started

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

Boxes, Stacks and the Heap

(aka variables, subroutines and the stack)

Displaying things

Keyboard, mouse and sensor input

Mathematics