Lab 11 Assignment

In this assignment you will create a mathematical art design and explore its variations.
Curve stitching design being drawn line by line in each quadrant

This design uses straight lines to make shapes that look curved and is sometimes sewn with thread or drawn on paper. Here are some examples of and variations on this design made with string, computers, pencils on paper, and even pencils glued together:

Requirements

  1. Create a plan on how to how to make this design. Develop an algorithm that will generate the first quadrant of the design and then use abstraction to extend the design to the other quadrants.
  2. Write a Snap! program to generate the design.
    Mary and Brian want to rewrite this page so that it's not using fixed coordinates but is "turtly." --MF, 9/7/18
    Click for a hint about setting up the design.

    Below is a partial table of coordinates for the first quadrant of the design, showing which points on the y-axis are joined to which points on the x-axis.
    axes with first quadrant of design

    From (y-axis) To (x-axis)
    (0, 150) (0, 0)
    (0, 140) (10, 0)
    (0, 130) (20, 0)
    ... ...
    (0, 20) (130, 0)
    (0, 10) (140, 0)
    (0, 0) (150, 0)

    Click for a suggestion about how to start in Snap!

    There are many possible approaches to this problem. One approach could use the for block:
    for (i)=(0) to (15)
  3. Use a variation of colors similar to the example picture. It doesn't need to match exactly, but you should be using many different colors. The following tasks should use colors as well, even though the example pictures are black-and-white. pen hue allows you to change the color using a numeric value.
  4. Using the same principles, create a surrounding frame for your design.
    Curve stitching design with its perimeter frame
    Both the original curve and the frame are made of four quarter-pictures.