# Pages Project 2- Scenes from Colby

Another week, another project write up.  I am very pleased with the result of this project; my images turned out very close to how I imagined them and I learned a

lot in the process.

To start off, we were instructed to make two different basic shapes.  Thinking ahead to what I would need for my picture, I made a rectangle with adjustable hight and width, and a 45,45,90 triangle with adjustable scale.  I also decided to make a heart basic shape, since I felt a little bad that one of my basic shapes was one that we used in class.  I never used the heart in my drawings for this project, but I know it will be useful in the future.  To test that my basic shapes worked for all sizes, positions, and rotations, I set up a function that would draw each one with random parameters three times.  Though they overlapped a little, the resulting image proved that the basic shapes were indeed versatile.

A few shapes demonstrating their versatility.

A few trees showing off how aggregate they are.

Finally, the moment you have all been waiting for!  The completed Colby scene depicts my very own dorm, Williams!  (Which is part of Hillside)
Dorm sweet dorm

To make Williams, I used my aggregate shapes, as well as other shapes that I added in to make the picture more than just trees and windows.  For the repeating shapes like the the windows and the white poles, I used a for statement that moved the position with every repeat, as demonstrated below:
This caused the white rectangle to repeat across the building, without having to write it out each time.  I also took advantage of the fact that the turtle will draw over itself in the order of when each object is drawn to create a layered affect with the trees and the building.

The second Colby scene I drew was a vending machine, which had position, size, and three color variables.

Hope you're hungry for colored squares!

The vending machine also made use of the for statement to repeat like images, as that is how both the buttons and interior of the machine are made.  As demonstrated for the food and clips below, I not only used a for statement in the y direction, but in the x direction too.
(The rings are also in this function, but not pictured for space purposes)
The snacks are designed to be random colors, as a vending machine that only dispensed one thing would be very boring.

As an extension, I decided to make some pop art.  If you count the randomly colored snacks as only one color, there are four colors in the vending machine.  I made some small edits to the code so that the snacks would not longer be random, and then had it repeat four times, with a different set of random colors each time.  The result: Instant Pop Art!

If only it was a soda machine, not a vending machine.  We could have pop Pop Art.

Well, that is my writeup for this week.  I hope I was not too long winded.  See you next time!

Labels