## 2 Art Piece Project (Last Piece)- Computer Science Blog Post #4

February 26, 2019

Post your final product and how well you followed your plan, including any challenges you faced.

#### How I followed my plan:

My plan from Blog Post #3 was really well developed. In fact, I included every step of my method and added some few steps. I used all the iterations, increments, parameters, state (variables), random and sub-procedures for my inspiration project which was a massive achievement. I used iterations for almost all of my sub-procedures and variables such as Xcors and Ycors were efficiently used which was definitely cool. I also have achieved my goal that I would try and put the sun just over the river, so it looks like the sun has just risen from the horizon. From the picture above we can see that the mountain’s color gets darker as the height also goes down and we can see the water gets darker as it gets more in-depth as well. This was a realistic feature, which was a goal for me, and I achieved it. I also made the background as red because when the sun just came up, the sky would look red. To emphasize that it is the year 2019, I put the numbers of the year so that it shows it’s the first sunrise of the year. I also added some birds that look like they are traveling right above the sun. I thought of this idea from my past experience when I was in 5th grade and thought the birds that went over the sun were lovely. Now, I would talk about my challenges and analyze each component of the inspiration project.

#### Different Components of Project and Analyzing/Challenges Throughout the Process of Each Component:

BIRD:

Evaluation: Making the bird was a straightforward task that I didn’t have any challenges. At first, I didn’t even think of making birds. However, I thought of the first time I saw birds going over the sun, and I thought it would be a good idea to put it in my project and share the experience by using turtle art. To start out, in this code, I used iterations, variables, and incrementing pattern. From the code, we can see there is the repeat block that I used. I repeated 4 times which made the 4 birds. I used the incrementing pattern for my setXY. The first setXY is for my first bird which is the first one from the bottom, and then, I put the repeat and setXY Xcor + 10, Ycor. We can see from Xcor + 10, I am using a variable and increasing the variable each time I repeat. So, the first time I make it, I would make the first bird, after that, I would use the coordinates from there, and then move along the Xcor by 10 and so on. I also used the penUp and penDown in my code because I needed to go back and then make an arc that leads to a different direction.

Challenges during the process: There wasn’t a big challenge making this, however at first, I felt difficulty making use of the XY coordinates. I didn’t know where it would be best to put the birds so that it fits my theme. How I solved it was to take time and rethink of where I would put my sun, after that, I decided that the best place was right over the sun but not too close which is the place from the picture above.

PERSON/CLIMB

Evaluation: This is my stickman code. In this piece of code, I planned to use this code so I can use it as a parameter pattern just like what I used in the climb block of code. For my person, as I planned, I used black or color (-9999), shade(0), for it to look like they are in the shadows. My person block doesn’t have a particularly exciting part as it is full of backs and forwards with arcs. However, I believe the exciting part of this part of the code is the climbing block, where I finally used the parameter pattern. As we can see I used setXY (0,30); which meant the first person is on the lowest mountain, and I put in the person block right below to start with the first person. After that, I used seth(0); because I found out the head was to the left direction and if I put the seth(0) code in the person block, it would make my person block too long for no reason. After that, I used iterations, variables, incrementing and decrementing patterns again. The incrementing and decrementing patter in hear it is also for the variables Xcor and Ycor as I want it to look like they are moving above the mountain and taking a break to see the view of the sun. After that, I used the person block once again, which is how I used the parameter pattern. I repeated that 40 times, making 40 people climbing on the mountain. However, it didn’t show all of it in the turtle art because 40 meant I have to move 1200 of Xcor to the left, but it would go over the limit.

Challenges: Some challenges I faced during this block is how I can use the parameter pattern efficiently and while doing that, how I will use the incrementing and decrementing pattern. I wanted the people to seem like they are climbing the mountain, however, to do that I needed to increment the y and x coordinates in the right amount, so finding that was giving me some hard time making this piece of code. The parameter pattern was a little bit challenging because I had to think where I had to put the person block once again for this block of code to work.

MOUNTAIN:

Evaluation:

For my mountain block, I used iteration, increment, and decrement, also, I used the start fill and end fill blocks. When making the mountains, I first thought of the top of the hills, I thought of the round part of the mountain which led me to make the arc first. When I first made the arc after setting the X and Y coordinates, because it was only 180 of an angle and 200 of a radius, it looked like the mountain was floating. Therefore, I decided to add some lines that come down so that the filling would work and it actually looks like it is stuck on the ground. Again, to show the realistic features of the mountain, I decided to make the hills further at the back a darker color and to show the contrast of the size, I made mountains in the end smaller. That is why I used the decrementing pattern for Xcor and incrementing for Ycor. I also incremented the shade so that each time, the mountain will look brighter.  I used startfill and endfill so that the hill would be filled with the same color as the pen color.

Challenges: The challenges I faced in this part of my project is repeating the number of mountains. If I happened too less, The distance between the hills was too big, so it didn’t look like a “tiring” mountain to hike. However, if I did too much, it didn’t look like a mountain but layers of rock. Therefore, I had to experiment a lot, so I know which number was the best to make these mountains. Even though the mountain looks like a simple task and I thought it would be simple, but unexpectedly, it took a lot of time to make and figure out the process.

SUN:

Evaluation: The sun was really simple to make as there were simple increments and arc which is a circle. In the sun’s code, I used increments and iterations.

Challenges: For the sun, I didn’t face any obstacles. It was really easy to make.

YEAR:

The year is the one I used the most randomness. Because I wanted to make the 2019 colorful so I used randomness for the colors, which was one of the criteria and I wanted to make it colorful.

Challenges: I didn’t have challenges because it as using randomness and making the numbers, which is an easy task.

OCEAN:

Evaluation: For the sea, I used an decrement pattern for my shade. Since I didn’t need a change in my color, I didn’t increment/decrement the darkness, however, I required a darker color, so I decided to decrement. I used iterations for my ocean in two ways. Because I needed to fill in the color, I needed a closed box. So, the iterations I used at the bottom of my code, is actually the code for making a rectangle. After that, I repeated 25 times where each time I reduced my YCor so that it will get darker as the elevation goes down. As I said, I changed the shad to -2 each time because that way, the ocean water will become darker. Therefore, by using iterations, incrementing and decrementing variables, I finished making the ocean.

Challenges: For this, I had difficulties in deciding how I would effectively use the variables without overusing them. I figured out that if I made a rectangle, I can fill out the box more efficiently and by using the Xcor, Ycor, color, and shade I saw that this is the shortest way to reduce the number of statements for my piece of code.

MAIN CODE:

This is my main code and by clicking this code, I can make my project in one step. I had to reset the head of the turtle because otherwise, my bird would start to fly sidewards, which is not what I want.

Besides these main components, I had other codes that were needed to make up these main sub-procedures. However, I didn’t find any big difficulties doing those, and they weren’t the main blocks of mine so I decided not to talk about all of them.

Therefore in this project, I used iterations, parameter pattern, increment/decrement pattern, variables, random, and sub-procedures to make my final art piece.

Entry Filed under: 2018-2019,Design,Electives. Posted in  2018-2019 ,Design ,Electives .