INQ241B
Mobile Apps

Activity 2

Loops

  1. Create a new script that uses a Turtle and a for loop to draw a pentagon, hexagon, and a triacontakaihexagon, that’s a polygon with 36 sides. The ploygons should be regular. Which means each side should be the same length and each corner should be the same angle. To do this you will need to calculate the angle exactly. Also, each shape have the same circumference. The drawing should look something like this:

    polygons
  2. Create a new script that draws a colored spiral like the one below. It doesn’t have to be eactly like this one, but if should have a regular pattern of points on the outside and circle of negative space on the inside.

    spiral
  3. Create a new script that draws waves like the ones below. The script should not use more than 2 for loops, but should draw more than 2 waves.

    waves

Submission

Please show your source code and run your scripts for the instructor or lab assistant.