Learn TurtleBlocks

From Open Educational Resources
Jump to navigation Jump to search

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


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 https://https://www.sugarlabs.org/turtle-blocks-js/


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.


  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


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

Turtleblocks construction 4.png

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


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 .
Square.png Using repeat.png
Here we have to follow very lengthy code to write square. Here we can draw the square by using very short code.
Step 12 repeat and forward.png Square with repeat.png
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.


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