Coding Shapes in Scratch

Try This: Drawing Squares and Circles with Scratch

Let’s draw a square using the Scratch coding language.

Go to scratch.mit.edu and click on Create. Compose the code below.

sc1

Now edit and run the code to get this pattern.

sc2

Draw circles with Scratch

Enter this code to draw a circle.

sc3

Enter this code to draw a circle faster.

sc4

Make a block with Scratch

Let’s create a new block called sc5.

  • in the Scripts menu, click on More Blocks
  • click on New Block
  • in the dialogue box that pops up, type “draw circle” for the name of the new block

sc6

  • click OK – define: draw circle will appear in the coding window

sc7

  • drag the repeat block that draws a circle and place it as shown below

sc8

Lots of squares, in colour! (with Scratch)

Edit the code below to draw a squares pattern instead.

sc9

 

[from Start a Math + Coding Club … https://researchideas.ca/documents/math-coding-club.pdf]

Printable PDF form: trythis_circles