Category: scratch

some 2d shapes drawn in Scratch

Scratch Shape Challenge

Try this code in your editor

Scratch code to draw a square

Now change the code to this:
scratch code to draw a pentagon

What shape does this draw?

Remember
360 ÷ 90 =4 and 4 x 90 =360
360 ÷ 5 = 72 so 5 x 72 = 360
360 ÷ 6 = 60 so 6 x 60 = 360
360 ÷ 8 = 45 so 8 x 45 = 360
360 ÷ 10 = 36 so 10 x 36 = 360

What other regular shapes can you draw?

 

Can you make the feature image for this post. I’ve duplicated my sprite a few times.

Tips

  • Think about co-ordinates.
  • Duplicate sprites
  • Give your sprites a different costume so you can tell them appart.
  • Do you need the  erase block all in each sprites code (it might be a problem, why?).

 

If you work it out you can add the scratch project to your e-Portfolio, here is how:

Scratch screenshots of drawings

Scratch Angle Challenge

We can all draw angles with scratch, but can we add a wee square to a right angle and arc to acute & obtuse angles?

  1. Check you can draw a line. Try this bit of code, change the x & y options for both go to blocks a few times.

Scratch Code screenshot

2. Draw a circle, remember this is not a real circle, but if you make a polygon with enough sides it looks like a circle.

Scratch code to draw a circle.

Next can you alter the code to draw half a circle. Then close the loop to make a semi-circle?

If you can manage that you might be able to draw some angles.

Scratch screenshots of drawings

 

Scratch Dice

Can you make a scratch dice like this:

you need to animate the rolling, in this example by changing the dice face; randomise the final face; make some noise and change colours for extra fun.

The picture of blocks you need at the top of the page should help.

If you need extra help you can use this Broken Dice as a starter, remix it.

Scratch: Repeated Polygons

You can use repeats and rotation to make interesting patterns from polygons.

Remember to add the Pen blocks!

I like to set the size of my sprite to 10%

Draw a Square

Scratch code for square

Repeat the Square

Things to Change

  • Colours
  • line size
  • The Polygon (how do you draw a triangle or pentagon) Hint: 4 x 90 =360º
  • The number of repeats in the outer loop. Hint: 10x 36 =360º
  • more than one Polygon.