Well, the day has finally come. Alex, Katie and I have spent the past couple of weeks working together on what seemed like an inconceivable idea considering our collective aptitude in physical computing and processing, but we finally crossed the finish line. Alex and I are set to present tomorrow and we will be in the winter show over the weekend. While there are still a few bugs to adjust in the interim, we are confident that we will have those fixed by the time it will be shown to the world (or at least whoever comes to the show on Sunday and Monday).
We are certainly moving right along with our interactive baseball simulation. This past weekend, we accomplished many things off our to-do list and find ourselves in very good shape with the final project due in approximately three weeks. From a coding and physical computing standpoint, we now have the pitch shown in text with the mph (miles per hour) directly next to it. For example, when a pitcher throws a fastball, it will say “fastball” in the middle of the screen with the speed of that pitch shown accordingly.
Ok. There has been quite a bit of progress made for our p5 sketch and a decent amount made from the physical computing side. For our sketch, we have now color coded the balls signaling the different pitches that are being thrown. These colors are still in flux as we have not made a key yet that will apply to all of the pitchers. However, the goal is to have each pitch assigned to a different color and show such in the pitchers arsenal (which will be displayed in the top left corner).
This has been a long and arduous process coming up with a final project. I spoke to several second years and their advice was resoundingly similar: if you can combine PComp and ICM into one project, then DO IT!!! With the ideas that I had presented in PComp two weeks prior, I realized that it would be very difficult to accomplish the task of incorporating a p5 sketch. So, I went back to the drawing board.
I have developed a close friendship with two of my classmates this semester, in large part because of our obsession with sports. I honestly thought that I would be lucky to find one person in ITP with the same love as mine (as it is very well known that sports are not on the high list of interests of a majority of the student body), but I somehow managed to find TWO. And one of them, Katie Takacs, is even from Arizona like myself. The other person, Alex Fast, is a baseball guru. Like an actual stats junkie. It’s amazing. So, it just made too much sense that we should all group together and create something sports related.
I am still in shock from last night. What a game! It’s been 108 years since the Chicago Cubs last won the World Series and they ended the curse in style during one of the most memorable games ever. While I personally had no stake for either side as I am unfortunately a Yankees fan, I could not help but feel the excitement when Kris Bryant partially slipped on the slow chopper to third and then gunned a heater to first for the final out of the game. I can’t remember a game where there was so much at stake aside from simply winning a championship. Suffice to say, I was fairly animated (as were most of the fans at the bar I was at last night) throughout the game and obviously at the conclusion.
This was quite a struggle this week as I have never used API’s before. I have always wanted to, but as like most things in my life, I have been too scared to actually learn how they work. Well, as it so happened, the assignment for the week was to create a sketch using an external source. I had a very hard time actually finding API’s that really fit my passion for sports. ESPN has placed quite a few roadblocks to obtain their API’s and at least from my understanding – – it is no longer possible to obtain their data. Am I completely wrong, by chance? If so, any help in finding these JSON files of this information would be much appreciated.
This was yet another exploration week, which seems to be a recurrent theme in ICM. The goal was to manipulate an existing or new page using DOM elements. For the first time all semester, I actually knew a little snippet about a subject prior to reading and watching the suggested videos. What a feeling!!! I honestly forgot what that feeling was like since I have been at ITP. That subject, of course, is HTML/CSS.
While, I do not have a tremendous background in either – – at least I understood the content and how it can be applied to p5. I have to say it again, especially after watching a majority of Shiffman’s videos – – I UNDERSTAND SOMETHING!!! I should shout it from my rooftop when I get home. Well, I can’t actually get up to the rooftop but I will yell from the top of my steps instead. I know, it’s pretty exciting.
This week, we were tasked with the following:
- Write a constructor function with just variables and generate one single object.
- Put one or more functions in the constructor function and call them on the object.
- Try making two objects without an array. Can you make them different?
- Duplicate the object using an array and make as many as you like!
This week, I found myself doing the following:
What in the world just happened? I honestly have no idea. We spent the past three hours in our ICM/PComp synthesis connecting the Arduino to p5 and it is even more complicated than I anticipated. The first two examples made sense after a bit of troubleshooting as the potentiometer and button controlled the sketches as expected. After a fifteen minute pizza break, we were asked to take an existing sketch and figure out how a sensor could control it.
I brought in a sketch that I worked on in the previous week with the football player running into the football. After working with my partner, Brandon, and consulting with several other classmates and residents, I realized I was way beyond my capabilities at the moment. As opposed to agonizing over controlling the football player using a sensor, I chose to look for a simpler sketch created by faculty. I found the mousePressed example where the circle changed from white to black when pressed.
This week, we were asked to either use an existing sketch or create a new one that compartmentalizes our code using functions. Since I am still very new at p5, I thought creating a new sketch from scratch would only aid my development. So, I set out to make a character who I have wanted to draw in p5 from the very onset: Mickey Mouse. In particular, Andy Warhol’s depiction of the famous mouse himself (as seen below):