Kristina You is a multidisciplinary designer based in New York, NY and a recent graduate from the ITP Program at NYU. Her practice focuses on UI/UX, interaction design, print design, and brand development.


︎︎︎Introduction to Computational Media

Week 6 Exercise




Assignment is still WIP!



Part 1


4. Challenge: Add a function(s) to the Bar class in this sketch such that when the bars collide something new happens. Feel free to modify the original bar objects, too!










Part 2: Creative Exercise

We can scale our programs by writing classes to create multiple objects, each with their own properties and behaviors, instead coding them all by hand. The idea this week is to practice designing a sketch in an object-oriented fashion.






code 
preview







What was your goal or inspiration?

-The inspiration for my sketch was actually last week’s creative exercise where I created a sketch with three flowers using for loops and repeated objects. I wanted to create a sketch in a similar series but with more added interaction.

What does your sketch do? If it's interactive, deconstruct the interaction(s) to produce the effect(s). Explain what you did in your code to produce the effect. Practice any new vocabulary you’ve acquired for describing technical work.

-My sketch creates a series of flower patters when the user’s mouse is pressed on the screen. I used a similar structure to the balloon sketch that we previously did for our class exercise. I added a mousePressed function that would generate a random number of flowers between 1 and 8 and I also used the show and move functions as well. I also added a bounce and a constructure function so that when the flowers reach the edge of the screen they would move in the opposite direction, or reverse the speed. The speed of the flowers were also randomized because I wanted to give some variation to how the objects interacted with each other. 


What code-related questions came up for you?

-Some of the code related questions that came up for me were related to new functions that I wanted to add to this sketch- For example, I was trying to add functions where the flowers would fall down to the ground once they intersected with one another but I had some difficulty in executing this, especially because the flower was a compound of shapes and not singular objects. I also wish that I could possibly experiment with the flower petals changing colors when they intersect with one another or if the mouse is over the object for future iterations! ( have not quite figured out yet)








︎︎︎ BACK TO ITP BLOG
Last Updated:  April 9, 2023
kristinayou00@gmail.com