Using Blocks in Your Scripts

Using Your New Blocks Video





Making ANY Shape

Exercise: Draw Any Shape Block

We made a lot of shapes and we started to notice a pattern! Look at the shapes below to see if you can figure out the pattern.

pentagonhexagonheptagonoctogon20 shape
50 shape

Make a block like the one below that has TWO variables! The variable number is how many sides you want your shape to have. You will have to use the “Add label text” option as well as the “Add number input”. Try to use the variable number in your script.

  • What should go in the blank?
  • How many times do you want to repeat?
  • What should 360 be divided by?

Any number

By the end you’ll have a new block that can be used like this to draw a square:

There should be an image here.