This short assignment has two goals:
Read the "Basic Constructs" tutorial, available from the Notes section of our class site. Be sure to try out all of the examples!
Modify Example #2 in two ways. First, adjust the dots so that the center one is in the center of the screen. Second, modify the placement of the dots so that the "line" is drawn vertically. Save the result as the sketch file prob-1.pde.
Modify your work in Problem #1 so that it draws a line of 17 dots, rather than 5. The "line" should begin 20 pixels from the top of the window, extend to 20 pixels above the bottom edge of the window, and have a blue dot in the middle.
Save the result as the sketch file prob-2.pde.
Make a drawing that consists of the 5 dot horizontal line, the 17 dot vertical line, and diagonal lines (bottom left/top right and top left/bottom right), also made of dots and running through the center of the window. The lines should each be drawn with a loop, and you should have some variation in the colors that are used to draw each dot. Finally, there should be more than one dot size in the drawing. Use your creativity here!
Save the result as the sketch file prob-4.pde.
Make a folder in your turn in directory named "lab1". Copy all four of your solutions in to this folder. Consult the Linux tutorial from Lab #0 if you need a reminder of the details.
Your code must be syntactically correct. Any solution that contains a syntax error anywhere (and hence crashes when you hit the "play" button") will receive no credit.
If you run into any trouble here, please ask me or one of the TAs for help.
Naturally, your code must be behaviorally correct, though partial credit is always given for partial solutions.