eToys Projects, Feb 29, 2012, Cardinal Forest Elementary School

Lab Assignment for Spirals1: Complete this eToys program

  1. Spirals eToys - eToys draw square spiral (press ! for drawSpiral), draw triangle spiral (press ! for drawTriangleSpiral),
    and draw hexagon spiral (press ! for drawHexagonSpiral):

  2. Scripts to build this program:
    • car drawTriangleSpiral
      • car clearScreen
      • car's sideLength <- 20
      • Repeat 40 times
        Do
        • car drawTriangle
        • car's sideLength increase by 5

    • car drawTriangle
      • Repeat 3 times
        Do
        • car forward by car's sideLength
        • car turn by 120

    • car drawHexagonSpiral
      • car clearScreen
      • car's sideLength <- 20
      • car's x <- 400
      • Repeat 40 times
        Do
        • car drawHexagon
        • car's sideLength increase by 5

    • car drawHexagon
      • Repeat 6 times
        Do
        • car forward by car's sideLength
        • car turn by 60