Difference between revisions of "KTurtle/C2/Introduction-to-KTurtle/English-timed"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| Border=1
+
{|border =1
| '''Time'''
+
|'''Time'''
 +
|'''Narration'''
  
|'''Narration'''
+
|-
 +
|00:01
 +
|Hello everybody. Welcome to this tutorial on '''Introduction to KTurtle.'''  
  
 +
|-
 +
|00:07
 +
|In this tutorial, I will introduce you to the basics of getting started with '''KTurtle.'''
  
|-
+
|-
 +
|00:14
 +
|In this tutorial, we will learn about:
  
|00.01
+
|-
 +
|00:17
 +
|'''KTurtle Window'''
  
| Hello Everybody
+
|-
 +
|00:19
 +
|'''Editor''','''Canvas'''
  
 +
|-
 +
|00:21
 +
|Menu Bar,Toolbar.
  
|-
+
|-
 +
|00:24
 +
|We will also learn about:
  
|00.02
+
|-
 +
|00:26
 +
|Moving the '''Turtle'''
  
| Welcome to the tutorial Introduction to KTurtle.
+
|-
 +
|00:28
 +
|Drawing lines and changing directions
  
 +
|-
 +
|00:32
 +
|Draw a triangle.
  
 +
|-
 +
|00:34
 +
|To record this tutorial, I am using:  '''Ubuntu Linux OS''' version '''12.04'''.KTurtle version '''0.8.1 beta'''.
  
|-
+
|-
 +
|00:47
 +
|What is '''KTurtle'''?
  
|00.05
+
|-
 +
|00:49
 +
|'''KTurtle''' is a free tool to learn basic programming.  
  
| In this tutorial I will introduce you to the basics of getting started with KTurtle.
+
|-
 +
|00:53
 +
|It is useful for computer aided interactive learning.
  
 +
|-
 +
|00:59
 +
|'''KTurtle''' is  available for download at: http://edu.kde.org/kturtle/
  
|-
+
|-
 +
|01:12
 +
|'KTurtle'- * makes programming easy and accessible.
  
|00.10
+
|-
 +
|01:18
 +
|Helps teach kids basics of mathematics.
  
| | What is KTurtle ?
+
|-
 +
|01:22
 +
|Translates '''command'''s to speaking language of the programmer.
  
 +
|-
 +
|01:27
 +
|Translates '''command'''s into visuals.
  
 +
|-
 +
|01:31
 +
|We can install  '''KTurtle''' using '''Synaptic Package Manager .'''
  
|-
+
|-
 +
|01:36
 +
|For more information on '''Synaptic Package Manager''',
  
|00.11
+
|-
 +
|01:40
 +
|please refer to '''Ubuntu Linux tutorials''' on our website: http://spoken-tutorial.org 
  
| It is a free programming software to learn logic
+
|-
 +
|01:46
 +
|Let's open a new 'KTurtle' '''Application'''.
  
 +
|-
 +
|01:50
 +
|Click on '''Dash home'''. 
  
 +
|-
 +
|01:52
 +
|In the Search bar, type: "KTurtle" 
  
|-
+
|-
 +
|01:55
 +
|and click on the '''KTurtle''' icon.
  
|00.13
+
|-
 +
|01:59
 +
|A typical '''KTurtle window''' looks like this.  
  
| and is available at [http://edu.kde.org/kturtle/ http://edu.kde.org/kturtle/] for download.
+
|-
 +
|02:02
 +
|This is the Menu-bar.
  
 +
|-
 +
|02:04
 +
|In the menu-bar, on the top,
  
|-
+
|-
 +
|02:06
 +
|you will find menu items- 
  
|00.19
+
|-
 +
|02:08
 +
|'''File, Edit, Canvas, Run, Tools, Settings''' and '''Help''' options.  
  
| It is useful for computer aided learning
+
|-
 +
|02:17
 +
|In the toolbar, you can reach for most of the actions used.
  
|-
+
|-
 +
|02:23
 +
|'''Editor''' is on the left where you can type the '''TurtleScript''' commands.
  
|00.21
+
|-
 +
|02:30
 +
||Most of the functions of the editor can be found in the  '''File''' and '''Edit''' menus.  
  
| as it is interactive, makes programming easy and accessible.
+
|-
 +
|02:37
 +
|There are several ways to enter the '''code''' in the editor.  
  
 +
|-
 +
|02:42
 +
|Easiest way is to use an example.
  
|-
+
|-
 +
|02:46
 +
|Go to  '''File''' menu > select  '''Examples'''.
  
|00.24
+
|-
 +
|02:50
 +
|Here, I will select a '''flower'''.
  
| And helps teach kids the basics of logic and programming.
+
|-
 +
|02:53
 +
|Code of the selected example opens in the editor.  
  
 +
|-
 +
|02:58
 +
|Click on the '''Run''' button, from '''Menu bar''' or ''' Tool bar''', to '''run''' the code.
  
|-
+
|-
 +
|03:04
 +
|Another way is to directly type your own code in the editor
  
|00.28
+
|-
 +
|03:10
 +
|or '''copy/paste''' some code in the editor.  
  
| It translates commands into visuals,i.e when you execute the command the turtle moves.
+
|-
 +
|03:13
 +
|For example, from other '''KTurtle''' files.
  
 +
|-
 +
|03:18
 +
|Canvas is on the right where '''Turtle''' makes your drawings.
  
 +
|-
 +
|03:24
 +
|'''Turtle''' draws according to the commands it gets from the editor on the canvas.
  
 +
|-
 +
|03:32
 +
|'''Run''' option on the toolbar starts  execution of the commands in the '''editor'''.
  
|-
+
|-
 +
|03:39
 +
|It presents a list of execution speeds.
  
| 00.34
+
|-
 +
|03:43
 +
|'''Full speed (No highlighting and inspector),'''
  
| To get started with KTurtle,
+
|-
 +
|03:46
 +
|'''Full speed,'''
  
 +
|-
 +
|03:48
 +
|'''Slow''','''Slower'''
  
|-
+
|-
 +
|03:51
 +
|'''Slowest''' and ,'''Step-by-Step'''.
  
|00.36
+
|-
 +
|03:55
 +
|'''Abort''' and  '''Pause''' options allow you to stop and pause the executions respectively.
  
| Iam using  the Linux operating system ubuntu, Version 11.04 and KTurtle Version 0.8.1 Beta
+
|-
 +
|04:03
 +
|Let's now '''Run''' this code.
  
 +
|-
 +
|04:06
 +
|'''Turtle''' draws a flower on the canvas.
  
|-
+
|-
 +
|04:11
 +
|When you open a new '''KTurtle''' application,
  
| 00.44
+
|-
 +
|04:15
 +
|'''Turtle''' is in the middle of the canvas by '''default.'''
  
|| If you have already installed KTurtle, go to the Ubuntu Menu Item
+
|-
'''Applications >''' '''Education'''and click on the '''KTurtle'''
+
|04:19
Application.
+
|Let's now move the '''Turtle.'''
  
 +
|-
 +
|04:22
 +
|'''Turtle''' can do three types of moves:
  
|-
+
|-
 +
|04:25
 +
|It can move forward, it can move backwards.
  
|00.52
+
|-
 +
|04:29
 +
|It can turn left or right.  
  
| And the way to open '''Kturtle'''on your system is by going to the terminal and then application and accessories menu .
+
|-
 +
|04:32
 +
|It can also jump directly to a position on the screen.  
  
|-
+
|-
 +
|04:38
 +
|Let me zoom into the program text, it may possibly be a little blurred.
  
|01.01
+
|-
 +
|04:44
 +
|Let us go through a simple example.  
  
|And if they prompt typing  the name of your application that is
+
|-
'''Kturtle''' and hit enter. This will open the tone on your system.
+
|04:48
 +
|In your editor, type the following commands:
  
 +
|-
 +
|04:52
 +
|'''"reset" ''' 
  
|-
+
|-
 +
|04:55
 +
|'''"forward 100"'''
  
|01.13
+
|-
 +
|04:58
 +
|'''"turnright 120" '''
  
| 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'''
+
|-
 +
|05:02
 +
|'''"forward 100"'''  
  
 +
|-
 +
|05:07
 +
|'''"turnright 120"'''
  
|-
+
|-
 +
|05:11
 +
|'''"forward 100"'''
  
|01.24
+
|-
 +
|05:15
 +
|'''"turnright 120"'''
  
| In the '''Synaptic Package Manager''' type the name of the application in the search bar and download and install it
+
|-
 +
|05:18
 +
|Note that the color of the code changes as we type.
  
 +
|-
 +
|05:23
 +
|This feature is called '''highlighting.'''
  
|-
+
|-
 +
|05:26
 +
|Different types of commands are highlighted differently
  
| 01.32
+
|-
 +
|05:31
 +
|which makes it easier to read large '''block'''s of code.
  
| | Let us explore the '''KTurtle''' window .
+
|-
 +
|05:36
 +
|I will explain the code now.  
  
 +
|-
 +
|05:38
 +
|'''reset''' command sets Turtle to  '''default''' position.
  
|-
+
|-
 +
|05:42
 +
|'''forward 100''' commands Turtle to move forward by 100 pixels.
  
| 01.34
+
|-
 +
|05:49
 +
|'''turnright 120'''  commands '''Turtle''' to turn 120 degrees anti-clockwise.  
  
| In this tutorial, I will briefly explain
+
|-
 +
|05:56
 +
|Note that these two commands are repeated thrice to draw a triangle.
  
 +
|-
 +
|06:03
 +
|Let's now execute the code.
  
|-
+
|-
 +
|06:06
 +
|I will choose ''' Slow''' step so that we understand what commands are being executed.
  
|01.36
+
|-
 +
|06:16
 +
|Here the triangle is drawn.
  
| '''the editor,''' '''the canvas, the menubar, and the toolbar '''and also some of the input commands.
+
|-
 +
|06:19
 +
|Let's look at another example and also learn how to beautify our canvas.  
  
 +
|-
 +
|06:26
 +
|Let's draw a triangle using '''repeat''' command.
  
|-
+
|-
 +
|06:30
 +
|I will clear the current program.
  
|01.43
+
|-
 +
|06:33
 +
|Let me zoom into the program text to have a clear view.
  
| A typical KTurtle window looks like this.
+
|-
 +
|06:38
 +
|Type the following commands into your editor:
  
 +
|-
 +
|06:41
 +
|'''reset'''
  
|-
+
|-
 +
|06:44
 +
|'''canvassize''' space '''200, 200'''
  
|01.46
+
|-
 +
|06:51
 +
|'''canvascolor''' space '''0, 255, 0''' 
  
| It has the '''file, edit, canvas, run, tools, settings '''and '''help menu in the menu bar '''.
+
|-
 +
|07:00
 +
|'''pencolor''' space '''0, 0, 255'''  
  
 +
|-
 +
|07:08
 +
|'''penwidth''' space '''2'''
  
|-
+
|-
 +
|07:12
 +
|'''repeat''' space '''3'''  within curly braces {
  
|01.53
+
|-
 +
|07:19
 +
|'''forward 100'''
  
| And the '''tool bar, '''has most of the used actions.
+
|-
 +
|07:23
 +
|'''turnleft 120'''  
 +
 +
|-
 +
|07:27
 +
|Let me now explain the code.
  
 +
|-
 +
|07:30
 +
|'''reset''' command sets '''Turtle''' to its '''default''' position.
  
|-
+
|-
 +
|07:34
 +
|'''canvassize 200, 200''' sets the canvas width and height to 200 pixels.
  
|01.57
+
|-
 +
|07:42
 +
|'''canvascolor 0, 255, 0'''  makes the canvas green.  
  
| the '''editor '''is on the left, where you type the TurtleScript commands.
+
|-
 +
|07:48
 +
|'''0, 255 ,0''' is a '''RGB''' combination  where only the green value is set to '''255''' and  the others are set to '''0'''.  
  
 +
|-
 +
|08:03
 +
|This makes the canvas  '''green''' in color.
  
|-
+
|-
 +
|08:07
 +
|'''pencolor 0, 0, 255''' sets the color of the pen to blue.
  
|02.00
+
|-
 +
|08:14
 +
|'''RGB''' combination where blue value is set to '''255.'''
  
| most of the functions of the editor can be found in the '''file '''and '''edit '''menus in the menu bar.
+
|-
 +
|08:20
 +
|'''penwidth 2''' sets the width of the pen to 2 ''' pixels'''.  
  
 +
|-
 +
|08:27
 +
|'''repeat''' command is followed by a number  and a list of commands within curly brackets.
  
|-
+
|-
 +
|08:33
 +
|This repeats the commands within the curly brackets, the specified number of times.
  
|02.06
+
|-
 +
|08:39
 +
|Here, the commands '''forward 100''' and '''turnleft 120''' are within curly brackets.
  
| There are several ways to enter the code in your editor.
+
|-
 +
|08:47
 +
|'''repeat''' command is followed by the number '''3''' because a triangle has 3 sides.
  
 +
|-
 +
|08:54
 +
|These commands are '''run''' 3 times in a '''loop'''.
  
|-
+
|-
 +
|08:59
 +
|3 sides of the triangle are drawn.
  
|02.09
+
|-
 +
|09:02
 +
|Let's '''run''' the code now.
  
| Easiest way is to use an example. T o open an example
+
|-
 +
|09:05
 +
|I will select '''Slow'''  option for execution of the program.  
  
|-
+
|-
 +
|09:09
 +
|The canvas color becomes '''green''' and  the''' Turtle''' draws a triangle.
  
|02.13
+
|-
 +
|09:20
 +
|Let's now '''save''' the file.
  
| Go to the '''file '''menu choose the example sub menu and click on any of these options.
+
|-
 +
|09:23
 +
|Select '''File''' menu > '''Save As '''.  
  
 +
|-
 +
|09:27
 +
|'''Save As''' dialog-box opens.
  
|-
+
|-
 +
|09:30
 +
|I will select '''Document''' folder for saving the file.
  
|02.19
+
|-
| For example I will click on a example here and the chosen code appears inthe editor .
+
|09:34
 +
|I will type the file name as "triangle" and click on '''Save''' button.  
  
 +
|-
 +
|09:41
 +
|Notice that the name of the file appears in the top panel and it is saved as a '''dot turtle''' file, like all '''Turtle''' files.
  
|-
+
|-
 +
|09:53
 +
|With this we come to the end of this tutorial.
  
|02.25
+
|-
 +
|09:57
 +
|Let's summarize.
  
| You can select '''run ''' either from tool bar or the menu bar to execute the code present in your editor.
+
|-
 +
|09:59
 +
|In this tutorial, we have learnt about:
  
 +
|-
 +
|10:02
 +
|KTurtle's '''editor, canvas, menubar''' and '''toolbar'''
  
|-
+
|-
 +
|10:07
 +
|Move Turtle
  
|02.32
+
|-
| Another way to enter code in your editor is by directly typing that, or copy/paste some code in the editor
+
|10:09
 +
|Draw lines and change directions
  
 +
|-
 +
|10:13
 +
|Draw a triangle.
  
|-
+
|-
 +
|10:15
 +
|As an assignment, I would like you to * draw a square using the  commands-
  
|02.41
+
|-
 +
|10:21
 +
|'''forward, backward, turnleft, turnright''' and '''repeat'''.  
  
| (for example, from other kturtle files)
+
|-
 +
|10:26
 +
|Set '''background color''', '''penwidth''' and '''pencolor''' of your choice.
  
 +
|-
 +
|10:32
 +
|Change values in the ''' RGB''' combination.
  
|-
+
|-
 +
|10:37
 +
|Watch the video available at this URL:
 +
http://spoken-tutorial.org/What_is_a_Spoken-Tutorial
  
| 02.44
+
|-
 +
|10:40
 +
|It summarizes the Spoken Tutorial project.
  
| The canvas is in the right, where the turtle makes a drawing.
+
|-
 
+
|10:44
 
+
|If you do not have good bandwidth, you can download and watch it.  
|-
+
 
+
|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 example'''Full 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
+
  
 +
|-
 +
|10:48
 +
|The Spoken Tutorial Project team:
  
 
|-
 
|-
 
+
|10:50
|03.15
+
|Conducts workshops using spoken tutorials.
 
+
| 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.
+
  
 
|-
 
|-
 
+
|10:53
|03.33
+
|Gives certificates to those who pass an online test.  
 
+
| Let us start by getting the turtle to move.
+
 
+
 
+
|-
+
 
+
|03.35
+
 
+
| The '''turtle '''can do three types of moves:
+
 
+
  
 
|-
 
|-
 
+
|10:56
|03.37
+
|For more details, please write to:'''contact@spoken-tutorial.org'''
 
+
| It can move forwards and backwards
+
 
+
  
 
|-
 
|-
 
+
|11:03
|03.39
+
|'''Spoken Tutorial''' project is a part of the '''Talk to a Teacher''' project.  
 
+
| 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.
+
 
+
 
+
 
+
|-
+
 
+
|05.01
+
| '''Note that the '''forward 100 '''and '''turnleft 120 ''' commands have been repeated three times to draw the three sides of a triangle.
+
  
 
|-
 
|-
 
+
|11:08
|05.10
+
|It is supported by the National Mission on Education through ICT, MHRD, Government of India.
 
+
| 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'''
+
 
+
  
 
|-
 
|-
 
+
|11:15
|07.38
+
|More information on this mission is available at this link:
 
+
http://spoken-tutorial.org/NMEICT-Intro.  
|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 therepeat 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 nameof your file.
+
 
+
 
+
|-
+
 
+
|08.17
+
 
+
|I will give the name as '''triangle''' and save the filter as turtle codefiles 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 the'''forward, 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
+
 
+
  
 
|-
 
|-
 
+
|11:20
|09.02
+
|The script is contributed by '''IT for Change, Bangaluru'''.
 
+
| I have solved the assignment and the square should look like this.
+
 
+
|-
+
 
+
|09.10
+
 
+
| I would like to acknowledge the spoken tutorial project
+
 
+
  
 
|-
 
|-
 
+
|11:24
|09.13
+
|This is Madhuri Ganpathi from '''IIT Bombay''', signing off.  
 
+
Thank you for joining.  
| 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.
+
 
+
 
+
|}
+

Latest revision as of 11:20, 28 March 2017

Time Narration
00:01 Hello everybody. Welcome to this tutorial on Introduction to KTurtle.
00:07 In this tutorial, I will introduce you to the basics of getting started with KTurtle.
00:14 In this tutorial, we will learn about:
00:17 KTurtle Window
00:19 Editor,Canvas
00:21 Menu Bar,Toolbar.
00:24 We will also learn about:
00:26 Moving the Turtle
00:28 Drawing lines and changing directions
00:32 Draw a triangle.
00:34 To record this tutorial, I am using: Ubuntu Linux OS version 12.04.KTurtle version 0.8.1 beta.
00:47 What is KTurtle?
00:49 KTurtle is a free tool to learn basic programming.
00:53 It is useful for computer aided interactive learning.
00:59 KTurtle is available for download at: http://edu.kde.org/kturtle/
01:12 'KTurtle'- * makes programming easy and accessible.
01:18 Helps teach kids basics of mathematics.
01:22 Translates commands to speaking language of the programmer.
01:27 Translates commands into visuals.
01:31 We can install KTurtle using Synaptic Package Manager .
01:36 For more information on Synaptic Package Manager,
01:40 please refer to Ubuntu Linux tutorials on our website: http://spoken-tutorial.org
01:46 Let's open a new 'KTurtle' Application.
01:50 Click on Dash home.
01:52 In the Search bar, type: "KTurtle"
01:55 and click on the KTurtle icon.
01:59 A typical KTurtle window looks like this.
02:02 This is the Menu-bar.
02:04 In the menu-bar, on the top,
02:06 you will find menu items-
02:08 File, Edit, Canvas, Run, Tools, Settings and Help options.
02:17 In the toolbar, you can reach for most of the actions used.
02:23 Editor is on the left where you can type the TurtleScript commands.
02:30 Most of the functions of the editor can be found in the File and Edit menus.
02:37 There are several ways to enter the code in the editor.
02:42 Easiest way is to use an example.
02:46 Go to File menu > select Examples.
02:50 Here, I will select a flower.
02:53 Code of the selected example opens in the editor.
02:58 Click on the Run button, from Menu bar or Tool bar, to run the code.
03:04 Another way is to directly type your own code in the editor
03:10 or copy/paste some code in the editor.
03:13 For example, from other KTurtle files.
03:18 Canvas is on the right where Turtle makes your drawings.
03:24 Turtle draws according to the commands it gets from the editor on the canvas.
03:32 Run option on the toolbar starts execution of the commands in the editor.
03:39 It presents a list of execution speeds.
03:43 Full speed (No highlighting and inspector),
03:46 Full speed,
03:48 Slow,Slower
03:51 Slowest and ,Step-by-Step.
03:55 Abort and Pause options allow you to stop and pause the executions respectively.
04:03 Let's now Run this code.
04:06 Turtle draws a flower on the canvas.
04:11 When you open a new KTurtle application,
04:15 Turtle is in the middle of the canvas by default.
04:19 Let's now move the Turtle.
04:22 Turtle can do three types of moves:
04:25 It can move forward, it can move backwards.
04:29 It can turn left or right.
04:32 It can also jump directly to a position on the screen.
04:38 Let me zoom into the program text, it may possibly be a little blurred.
04:44 Let us go through a simple example.
04:48 In your editor, type the following commands:
04:52 "reset"
04:55 "forward 100"
04:58 "turnright 120"
05:02 "forward 100"
05:07 "turnright 120"
05:11 "forward 100"
05:15 "turnright 120"
05:18 Note that the color of the code changes as we type.
05:23 This feature is called highlighting.
05:26 Different types of commands are highlighted differently
05:31 which makes it easier to read large blocks of code.
05:36 I will explain the code now.
05:38 reset command sets Turtle to default position.
05:42 forward 100 commands Turtle to move forward by 100 pixels.
05:49 turnright 120 commands Turtle to turn 120 degrees anti-clockwise.
05:56 Note that these two commands are repeated thrice to draw a triangle.
06:03 Let's now execute the code.
06:06 I will choose Slow step so that we understand what commands are being executed.
06:16 Here the triangle is drawn.
06:19 Let's look at another example and also learn how to beautify our canvas.
06:26 Let's draw a triangle using repeat command.
06:30 I will clear the current program.
06:33 Let me zoom into the program text to have a clear view.
06:38 Type the following commands into your editor:
06:41 reset
06:44 canvassize space 200, 200
06:51 canvascolor space 0, 255, 0
07:00 pencolor space 0, 0, 255
07:08 penwidth space 2
07:12 repeat space 3 within curly braces {
07:19 forward 100
07:23 turnleft 120
07:27 Let me now explain the code.
07:30 reset command sets Turtle to its default position.
07:34 canvassize 200, 200 sets the canvas width and height to 200 pixels.
07:42 canvascolor 0, 255, 0 makes the canvas green.
07:48 0, 255 ,0 is a RGB combination where only the green value is set to 255 and the others are set to 0.
08:03 This makes the canvas green in color.
08:07 pencolor 0, 0, 255 sets the color of the pen to blue.
08:14 RGB combination where blue value is set to 255.
08:20 penwidth 2 sets the width of the pen to 2 pixels.
08:27 repeat command is followed by a number and a list of commands within curly brackets.
08:33 This repeats the commands within the curly brackets, the specified number of times.
08:39 Here, the commands forward 100 and turnleft 120 are within curly brackets.
08:47 repeat command is followed by the number 3 because a triangle has 3 sides.
08:54 These commands are run 3 times in a loop.
08:59 3 sides of the triangle are drawn.
09:02 Let's run the code now.
09:05 I will select Slow option for execution of the program.
09:09 The canvas color becomes green and the Turtle draws a triangle.
09:20 Let's now save the file.
09:23 Select File menu > Save As .
09:27 Save As dialog-box opens.
09:30 I will select Document folder for saving the file.
09:34 I will type the file name as "triangle" and click on Save button.
09:41 Notice that the name of the file appears in the top panel and it is saved as a dot turtle file, like all Turtle files.
09:53 With this we come to the end of this tutorial.
09:57 Let's summarize.
09:59 In this tutorial, we have learnt about:
10:02 KTurtle's editor, canvas, menubar and toolbar
10:07 Move Turtle
10:09 Draw lines and change directions
10:13 Draw a triangle.
10:15 As an assignment, I would like you to * draw a square using the commands-
10:21 forward, backward, turnleft, turnright and repeat.
10:26 Set background color, penwidth and pencolor of your choice.
10:32 Change values in the RGB combination.
10:37 Watch the video available at this URL:

http://spoken-tutorial.org/What_is_a_Spoken-Tutorial

10:40 It summarizes the Spoken Tutorial project.
10:44 If you do not have good bandwidth, you can download and watch it.
10:48 The Spoken Tutorial Project team:
10:50 Conducts workshops using spoken tutorials.
10:53 Gives certificates to those who pass an online test.
10:56 For more details, please write to:contact@spoken-tutorial.org
11:03 Spoken Tutorial project is a part of the Talk to a Teacher project.
11:08 It is supported by the National Mission on Education through ICT, MHRD, Government of India.
11:15 More information on this mission is available at this link:

http://spoken-tutorial.org/NMEICT-Intro.

11:20 The script is contributed by IT for Change, Bangaluru.
11:24 This is Madhuri Ganpathi from IIT Bombay, signing off.

Thank you for joining.

Contributors and Content Editors

Devraj, Madhurig, PoojaMoolya, Pratik kamble, Sandhya.np14, Sneha