Learn TurtleBlocks

From Open Educational Resources
Revision as of 14:46, 20 May 2020 by Vedavathi (talk | contribs)

ಕನ್ನಡದಲ್ಲಿ ನೋಡಿ

Introduction

TurtleBlocks is a fun activity in which you learn how command a little robotic turtle to draw pictures and designs for you. Turtle-blocks does only one thing and tries to do it very simply and very well: bring geometry and art together through programming. Like the Logo programming language turtle geometry has a central role. However the main focus of TurtleBlocks is static artistic images.

Basic information

ICT Competency ICT for creating generic resources
Educational application and relevance Turtle Blocks is an activity with a Logo-inspired graphical "turtle" that draws colorful art based on snap-together visual programming elements.
Version Python version
Other similar applications [Scratch]
The application on mobiles and tablets Currently there is no mobile app for TurtleBlocks but there is a App called turtleDraw, this app also same as turtleBlocks.
Development and community help [1]

[2]

Overview of features

The Turtle follows a sequence of commands. You specify the sequence by snapping together puzzle like blocks. Its "low floor" provides an easy entry point for beginners. It also has "high ceiling" programming, graphics, mathematics, and Computer Science features which will challenge the more adventurous student.

Installation

  1. The application is part of the Ubuntu custom distribution.
  2. In case you do not find it on your computer, you can install by choosing “Turtle Blocks” in Ubuntu Software Centre
  3. If you would like to install through the terminal follow these steps below:
    1. Open terminal by clicking (Ctrl+Alt+T),
    2. Once Window page is open, in front of dollar($) symbol just type below command.
    3. sudo add-apt-repository ppa:alanjas/turtleblocks
    4. sudo apt-get update
    5. sudo apt-get install turtleblocks

Working with the application

Functionalities

   
Step 1 - TurtleBlocks can be opened from Application→ Other → TurtleBlocks Step 2 - Once you open Turtle Blocks you can see the window like this.
   
Step 3 - It is a turtle palette which contain blocks that are used to control the movement of turtle. Step 4 - It is a pen palette which contain blocks that are used to control attributes of the turtle's pen.
   
Step 5 - These are a collection of blocks used for displaying media objects, such as images from the Journal. Step 6 - Sensors palette is used to detect different factors.
   
Step 7 - The blocks in the flow palette control program flow. Step 8-This is palette of variable blocks. These blocks are for defining variables and subroutines, without actions.
   
Step 9 - Boxes palette is used to stores value and add numeric value to the defined variable, without actions. Step 10 - The blocks in number palette are related to arithmetic operators.
   
Step 11 -The blocks in boolean palette are related to boolean operators. Step 12 -The Heap palette used to perform heap operations like push,pop, store and display contents of heap.

 

Step 13 - These are a collection of extra blocks for accessing advanced features only available in Turtle Blocks.

Example : TO DRAW A SQUARE

The steps involved in drawing a square are as below.

  1. go forward some number of steps
  2. turn right (or left) 90 degrees
  3. go forward some number of step
  4. turn right (or left) 90 degrees
  5. go forward some number of steps
  6. turn right (or left) 90 degrees
  7. go forward some number of steps.
  8. turn right (or left) 90 degrees .
   
Here we have to follow very lengthy code to write square. Here we can draw the square by using very short code.
   
In flow palette select repeat block and set number as 4 to write 4 sides. To move the turtle select forward block in turtle palette set the measurement.

Saving the file

Click on save button and save your project as HTML. You can also save your turtle artwork as PNG, SVG formats.

Advanced features

Turtle Blocks has a plug-in mechanism that is used to add new blocks.

Ideas for resource creation

Programming Tool. We can use multiple blocks to create drawings, as the turtle moves under your control, colourful lines are drawn.

References

  1. https://github.com/sugarlabs/turtleblocksjs/blob/master/documentation/README.md
  2. http://wiki.sugarlabs.org/go/Activities/Turtle_Art