Drawing Various Stars in Scratch: Five, Six, Seven, and Eight-Pointed Stars

Five-Pointed Star

The sum of interior angles at the vertices of a five-pointed star is 180(n-4), where n=5, resulting in 180 degrees.

For a regular five-pointed star, each vertex angle is 180/5=36 degrees. To draw it, you can follow these steps:

  1. Draw a line.
  2. Rotate it by 180 – 36 = 144 degrees.
  3. Repeat this process five times.

Seven-Pointed Star

The sum of interior angles at the vertices of a seven-pointed star is 180(n-6), where n=7, resulting in 180 degrees.

For a regular seven-pointed star, each vertex angle is (180/7) degrees. To draw it, follow these steps:

  1. Draw a line.
  2. Rotate it by 180 – (180/7) degrees.
  3. Repeat this process seven times.

Eight-Pointed Star

The sum of interior angles at the vertices of an eight-pointed star is 180(n-6), where n=8, resulting in 360 degrees.

For a regular eight-pointed star, each vertex angle is 180/8=45 degrees. To draw it, follow these steps:

  1. Draw a line.
  2. Rotate it by 180 – 45 = 135 degrees.
  3. Repeat this process eight times.

Six-Pointed Star

A six-pointed star cannot be drawn continuously. You can create one by shifting two regular triangles.

  1. Draw a line.
  2. Rotate it by 130 degrees.
  3. Repeat this process 3 times.
  4. Move 1/3 of the height of the triangle
  5. Draw another triangle

Drawing Stars Randomly

The following is a program that draws the created stars in random positions, angles, and colors.