All Resources

Drawing Shapes with Scratch

In this activity, students can practice their block coding in Scratch, which is an online coding language and website. Scratch provides students an opportunity to expand on their coding of geometry, with the possibility of moving from shapes to patterns and tessellations.

Objectives

  • To write code that draws simple shapes in Scratch

  • To write code using functions and loops that creates tessellations in Scratch

  • To write code using functions and loops that creates spirographs in Scratch

Materials

  • A computer with an internet connection OR a tablet with either an internet connection or the Scratch app downloaded for offline use

What To Do

Getting Started with Scratch

If you are not familiar with Scratch, you can check out this resource first that will help you get started.

Set Up

Students will need a device in order to work with Scratch. Go to scratch.mit.edu/ (or open the app if downloaded on a tablet) and click “Start Creating”. Students can write code without making an account, but an account will allow them to save and share their work.

Coding in scratch is similar to coding with micro:bits. They are both block-coding languages, so students can drag and drop pieces of code they want to use. Give students time to experiment with the new block coding language. Ask: Can you make your Sprite move in a square?

TIP: Go to https://scratch.mit.edu/educators for more information on using Scratch in your classroom. You can create an educator account so you can setup virtual classrooms that your students can join, or access helpful tutorials and guides on using Scratch in the classroom.

Drawing Shapes

In order to be able to draw shapes in Scratch, students need to import the pen extension. By clicking the “Add Extension” button in the bottom left corner of the editor screen, you can select the Pen extension and it will get added to the toolbar on the left. Now, students can draw on the screen.

This block of code will allow students to draw a square. After seeing this code, students can attempt to use their prior knowledge to try and draw a triangle!

Once they have succeeded in this, they can attempt a hexagon, pentagon, or even a circle!

 

 

Creating Functions

When writing code, it is useful to create functions in order to make writing code more efficient. In Scratch, they are called “blocks”. When students have successfully written code to draw a specific shape, instruct them to click “My blocks” and make an new one named “square” or “triangle”. That way, they can call on those specific shapes in the following sections.

 

 

Creating Spirographs

Once students have successfully drawn a few shapes, they can move on to making spirographs. A example of a spirograph is pictured below. This process is mathematical but also artistic! Challenge students to create a combination of spirographs using at least three different shapes. They can also change the colour of the pen!

  • How can you predict the number of shapes that will be needed in order to complete a full circle?
  • Does your spirograph include different shapes from the repeating shape you coded? (For example, the spirograph above is made of squares but resulted in triangles being created)

Sample Code

 

 

Creating Tessellations

A tessellation is a combination of repeating shapes that fit together without any gaps. Have students attempt to draw these with pen and paper first.

  • How do you know the shapes will fit together?
  • How can you position shapes in order to avoid gaps between shapes?
  • Are there certain shapes that don’t fit together? Can you make a tessellation with different shapes?

Assuming students have previously written code for drawing a square and triangle, you can start your classroom with these blocks:

Now, they can attempt at making a repeating pattern of squares or triangles, that might end up looking like this:

Sample Code

Extensions

  • Try creating tessellations or spirographs with shapes other than squares and triangles!

Other Resources

Try this activity using Finch Robots!

About the sticker

Survivors

Artist: Jeff Kulak

Jeff is a senior graphic designer at Science World. His illustration work has been published in the Walrus, The National Post, Reader’s Digest and Chickadee Magazine. He loves to make music, ride bikes, and spend time in the forest.

About the sticker

Egg BB

Artist: Jeff Kulak

Jeff is a senior graphic designer at Science World. His illustration work has been published in the Walrus, The National Post, Reader’s Digest and Chickadee Magazine. He loves to make music, ride bikes, and spend time in the forest.

About the sticker

Comet Crisp

Artist: Jeff Kulak

Jeff is a senior graphic designer at Science World. His illustration work has been published in the Walrus, The National Post, Reader’s Digest and Chickadee Magazine. He loves to make music, ride bikes, and spend time in the forest.

About the sticker

T-Rex and Baby

Artist: Michelle Yong

Michelle is a designer with a focus on creating joyful digital experiences! She enjoys exploring the potential forms that an idea can express itself in and helping then take shape.

About the sticker

Buddy the T-Rex

Artist: Michelle Yong

Michelle is a designer with a focus on creating joyful digital experiences! She enjoys exploring the potential forms that an idea can express itself in and helping then take shape.

About the sticker

Geodessy

Artist: Michelle Yong

Michelle is a designer with a focus on creating joyful digital experiences! She enjoys exploring the potential forms that an idea can express itself in and helping then take shape.

About the sticker

Science Buddies

Artist: Ty Dale

From Canada, Ty was born in Vancouver, British Columbia in 1993. From his chaotic workspace he draws in several different illustrative styles with thick outlines, bold colours and quirky-child like drawings. Ty distils the world around him into its basic geometry, prompting us to look at the mundane in a different way.

About the sticker

Western Dinosaur

Artist: Ty Dale

From Canada, Ty was born in Vancouver, British Columbia in 1993. From his chaotic workspace he draws in several different illustrative styles with thick outlines, bold colours and quirky-child like drawings. Ty distils the world around him into its basic geometry, prompting us to look at the mundane in a different way.

About the sticker

Time-Travel T-Rex

Artist: Ty Dale

From Canada, Ty was born in Vancouver, British Columbia in 1993. From his chaotic workspace he draws in several different illustrative styles with thick outlines, bold colours and quirky-child like drawings. Ty distils the world around him into its basic geometry, prompting us to look at the mundane in a different way.