This task requires you to use Scratch. You might have previously downloaded and installed Scratch on your computer, but you no longer need to do that - there is now a web-based version.
web-based Scratch editor
Note that the above page opens in a separate window/tab so that you can keep the task open at the same time.
You do not need to register or log in to use Scratch, but if you do register, then your programs are automatically saved and you can easily share them with other people. In order to submit your task, you will need to go to the File menu at the top of the Scratch editor and download the file to your computer.
Blocks are used to create what would be called, in other programming languages, functions or subroutines. They are sections of your program that you might want to use repeatedly in your program. For example, for this task you need to create a block that draws a shape and then create a pattern that repeatedly draws that shape.
If you missed the lesson, or want to remind yourself of how to create and use blocks then you can watch this video.
You might find the following tiles useful for this project.
tiles for defining and calling blocks are in the More Blocks section:
when you click Make a Block and enter a name, a tile is created in the More Blocks section: . You can add the values that are passed to the block by clicking on the Options link. You can add some more later by right-clicking on the blocking and choosing Edit, then Options.
a tile to define what the block does will also appear in the Scripts area - you use it like the start of a program:
tiles for starting your program - e.g. when the flag is clicked - are found in the
tiles for moving and turning are found in the Motion section:
the tiles for repeating things are in the Control section:
the tile for asking a question is in the Sensing section:
(the answer tile contains the response)
the tiles for drawing are in the Pen section:
you can perform calculations using tiles from the Operators
There is also a technique, called recursion, where a block runs itself. I have used this technique in Scratch for my Lattices, Trees and Natural Trees programs.
Your task is to create a program that draws a geometric pattern - it might be the sort of pattern drawn with a Spirograph (like the image at the top of the page), or something different - it's up to you. Either way, you need to complete the following stages:
Create a block that draws a simple shape - this could be a simple shape, such as a square or triangle, or you could add arguments/paraments so that it can draw a polygon with any number of sides. You could use your program for the Polygons task as the starting point.
Use the main part of your program to repeatedly call the block (probably with some rotation and/or movement) to create the pattern.