Difference between revisions of "KTurtle/C2/Introduction-to-KTurtle/English-timed"
From Script | Spoken-Tutorial
(Created page with ' {| style="border-spacing:0;" | '''Visual Cue''' |'''Narration''' |- |00.01 | Hello Everybody |- |00.02 | Welcome to the tutorial Introduction to KTurtle. …') |
|||
Line 1: | Line 1: | ||
− | + | {| Border=1 | |
− | {| | + | | '''TIme''' |
− | + | ||
− | | ''' | + | |
|'''Narration''' | |'''Narration''' | ||
Line 14: | Line 12: | ||
| Hello Everybody | | Hello Everybody | ||
− | |||
Revision as of 17:03, 30 January 2013
TIme | Narration
|
00.01 | Hello Everybody
|
00.02 | Welcome to the tutorial Introduction to KTurtle.
|
00.05 | In this tutorial I will introduce you to the basics of getting started
with KTurtle.
|
00.10 | What is KTurtle ?
|
00.11 | It is a free programming software to learn logic
|
00.13 | and is available at [http://edu.kde.org/kturtle/
http://edu.kde.org/kturtle/] for download.
|
00.19 | It is useful for computer aided learning |
00.21 | as it is interactive, makes programming easy and accessible.
|
00.24 | And helps teach kids the basics of logic and programming.
|
00.28 | It translates commands into visuals,i.e when you execute the command the
turtle moves.
|
00.34 | To get started with KTurtle,
|
00.36 | Iam using the Linux operating system ubuntu, Version 11.04 and KTurtle
Version 0.8.1 Beta
|
00.44 | If you have already installed KTurtle, go to the Ubuntu Menu Item
Applications > Educationand click on the KTurtle Application.
|
00.52 | And the way to open Kturtleon your system is by going to the terminal
and then application and accessories menu . |
01.01 | And if they prompt typing the name of your application that is
Kturtle and hit enter. This will open the tone on your system.
|
01.13 | If you have not installed KTurtle, you can install it from the Synaptic
Package Manager by going to System and Administration >and clicking on Synaptic Package Manager
|
01.24 | In the Synaptic Package Manager type the name of the application in
the search bar and download and install it
|
01.32 | Let us explore the KTurtle window .
|
01.34 | In this tutorial, I will briefly explain
|
01.36 | the editor, the canvas, the menubar, and the toolbar and also
some of the input commands.
|
01.43 | A typical KTurtle window looks like this.
|
01.46 | It has the file, edit, canvas, run, tools, settings and help menu
in the menu bar .
|
01.53 | And the tool bar, has most of the used actions.
|
01.57 | the editor is on the left, where you type the TurtleScript commands.
|
02.00 | most of the functions of the editor can be found in the file and
edit menus in the menu bar.
|
02.06 | There are several ways to enter the code in your editor.
|
02.09 | Easiest way is to use an example. T o open an example |
02.13 | Go to the file menu choose the example sub menu and click on any of
these options.
|
02.19 | For example I will click on a example here and the chosen code appears in
the editor .
|
02.25 | You can select run either from tool bar or the menu bar to execute
the code present in your editor.
|
02.32 | Another way to enter code in your editor is by directly typing that, or
copy/paste some code in the editor
|
02.41 | (for example, from other kturtle files)
|
02.44 | The canvas is in the right, where the turtle makes a drawing.
|
02.48 | The turtle draws accordingly to the commands it gets from the editor. |
02.54 | The run option on your tool bar starts the execution of the commands
in the editor. |
02.59 | It presents a full list of execution speeds. |
03.02 | For exampleFull speed, slow, slower, slowest and step-by-Step |
03.08 | the abort and the pause options allow you to stop and pause
your executions respectively
|
03.15 | In this tutorial we will see how to move the Turtle ?
|
03.18 | drawing lines and changing directions.
|
03.21 | And an example , of how to draw a triangle
|
03.28 | When you open KTurtle, |
03.30 | The turtle is in the middle of the canvas by default. |
03.33 | Let us start by getting the turtle to move.
|
03.35 | The turtle can do three types of moves:
|
03.37 | It can move forwards and backwards
|
03.39 | It can turn left and right; and |
03.41 | It can jump to any position on the canvas. |
03.44 | Let us go through a simple example. |
03.46 | In your editor, type the commands as I am typing
|
03.50 | reset |
03.53 | forward 100 |
03.56 | turnleft 120 |
04.00 | forward 100 |
04.02 | turnleft 120 |
04.05 | forward 100 |
04.08 | turnleft 120
|
04.11 | Note that the color of the code is changing as we typed it.
|
04.15 | This feature is called the highlighting – |
04.17 | Different types of commands are highlighted differently,
|
04.19 | which makes it easier to read large blocks of code. |
04.23 | To run this piece of code in the editor select run either from the
tool bar or the menu bar and you can select any possible executions speeds from the menu. |
04.33 | I will choose the Slower option so that we understand what
commands are being executed. |
04.41 | Before we execute the commands in the editor,let us see what the commands
which are enter in the editor mean.
|
04.48 | The forward 100 command instructs a turtle to move forward by 100
pixels. |
04.53 | The turnleft 120 instructs the turtle to turn to the left
,anti-clockwise by 120 degrees.
|
Note that the forward 100 and turnleft 120 commands have
been repeated three times to draw the three sides of a triangle. | |
05.10 | Let us now run this piece of code by clicking on run, and choosing the
option slower. |
05.17 | Note that the commands, which are getting executed are being highlighted in
the editor |
05.23 | The turtles goes in the canvas and the triangle is drawn |
05.30 | We will now draw a triangle using the repeat loop
|
05.34 | Type the commands as been shown on the screen |
05.37 | reset
|
05.39 | canvassize 200,200
|
05.46 | canvascolor 0,255,0
|
05.55 | pencolor 0,0,255 |
06.02 | penwidth 2 |
06.06 | repeat followed by 3 {
forward 100 turnleft 120
} |
06.23 | Let us see, what this commands mean?
|
06.26 | The canvassize 200,200 sets the width of and height of the canvas to
200 pixels each.
|
06.33 | The canvascolor 0,255,0 sets the canvas color to green.
|
06.39 | 0,255,0 is a RGB Combination that is the Red-Green and Black
combination.
|
06.45 | Here the green value is set to 255 that is the totally Green
for the canvas color is set to Green. |
06.53 | The pencolor 0,0,255 sets the color of the pen to black
|
06.59 | The penwidth 2 sets the the width of the pen to 2 pixels.
|
07.04 | Here the repeat command is followed by a number and a list of
commands within curly brackets.
|
07.11 | Here the commands forward 100 and turnleft 120 are within
curly brackets, which means this repeats the commands within the curly brackets just specified number of times.
|
07.21 | Here it mean repeat three. |
07.28 | Let us now run this code |
07.31 | The canvas width and height have been change now. The canvas color is now set
to green
|
07.38 | The pen color have been now set to black which you can see later.
|
07.43 | The penwidth has been set to width 2 and now the controls enters the
repeat loop. |
07.48 | The turtles move forward by 100 pixels, turns left by 120 degrees moves
forward again by 100 pixels,turns left again by 120degrees and moves forward by 100 pixels. |
08.01 | the triangle is drawn now.
|
08.03 | To save a file in a Kturtle, Go to the File menu and select save as
|
08.11 | Choose is the location were you want to save your file and type the name
of your file.
|
08.17 | I will give the name as triangle and save the filter as turtle code
files and click save
|
08.27 | Notice that the name of the file appears on the top panel and it is saved
as a dot turtle file. |
08.34 | To open a file go back to the File menu and choose open. |
08.41 | Now to the ASSIGNMENT
|
08.41 | I would like you to draw a square by using the commands which
we have just learnt.
|
08.47 | That is , use theforward, backward, turnleft, turnright and repeat
commands
|
08.53 | Also customize your canvas by setting appropriate background color,
penwidth pencolor to a color of your choice
|
09.02 | I have solved the assignment and the square should look like this. |
09.10 | I would like to acknowledge the spoken tutorial project
|
09.13 | which is a part of the talk to a teacher project.
|
09.16 | Supported by the National Mission on Education through ICT, MHRD
government of India. |
09.21 | you can see more information on the spoken tutorial website.
|
09.25 | Thank you this is Sindhu signing off. Enjoy exploring KTurtle.
|
Contributors and Content Editors
Devraj, Madhurig, PoojaMoolya, Pratik kamble, Sandhya.np14, Sneha