Introduction: Drawing Geometrical Figures in Scratch

Scratch is a block-based visual programming language and website targeted primarily at children 8-16 as an educational tool for coding. Users of the site can create projects on the web using a block-like interface. 

The service is developed by the MIT Media Lab. It’s available in 70+ languages and is used in most parts of the world. 

Scratch takes its name from a technique used by disk jockeys called “scratching”, where vinyl records are clipped together and manipulated on a turntable to produce different sound effects and music. 

There are many platforms that online coding classes on Scratch programming that teaches kids coding in a fun way. 

Drawing Geometrical Figures in Scratch

In your geometry classes, you learned about many geometrical figures like triangles, squares, rectangles, pentagons, etc. You can draw all these figures using coding blocks in Scratch.

Let’s first start with an equilateral triangle. An equilateral triangle is a three-sided figure, where all sides and angles are equal. Since the sum of three angles of a triangle is 180 degrees, therefore the measure of each of the angles in an equilateral triangle will be 60 degrees.

Step 1: Initialize the Position of the Sprite

Move the sprite at position (-100, 100), which means 100 points left and 100 points above the center of the stage.

Step 2: Select Pen Color

Now, clear the screen and choose your favorite color for the pen. Figures are drawn on the stage when sprite moves only when pen down block is activated.

Step 3: Draw a Triangle

Now to draw an equilateral triangle of each side 200 steps, turn the sprite 120 degrees and move it 200 steps forward. Repeat these two steps 3 times using repeat block.

(Each angle of equilateral triangle is 60 degrees => Exterior angle of equilateral triangle = 180 - 60 = 120 degrees)

Step 4: Complete Code

With Scratch, you can many other beautiful patterns and shapes.