Archive for the ‘Nature of Code’ tag
Final of Nature of Code
Final Proposal Fractal Map
Exercise week 4, Nature of Code
Here is my example using box2d, my final goal is to disappear the red cells as soon as they touch the Disease and a second one where the virus will attach to the white cells. The solution is to create a contact listener so I know the values of the collision and can create functions like destroy and attach. The code is not very easy so I haven’t been able to figure it out, even with the help of Daniel Shiffman.
After I created the world and set the variables I realized that something was missing. I thought to create walls with lines that move with time, and noise. I looked at a lot of videos of cells and processing examples and I found a wonderful example in open processing.
After you mouse clicked the noise function adds massive points into the background. The cells and the disease have problems moving faster but when the toxin is flushed, they bounce between each other graciously again.
I’m exited about better understanding the contact listener function in box2d and experimenting more.
Bellow is the applet
Bellow is the video
Disease from Lina Maria Giraldo on Vimeo.
Exercise week 2, Nature of Code
In this exercise I tried to fix my leaf with pvectors that I created last week. I added an array of 100 elements and I started playing with the noise function, which gave the leaf acceleration from different angles creating a more natural movement.
My goal was to add forces, but I couldn’t make it work as I wanted, I’m sure it will happen in the next few days.
Here is the video documentation:
Video documentation of exercise week 2 of nature of code from Lina Maria Giraldo on Vimeo.
Here is my second attempt after Daniel Shiffman help me. The leafs now move differently which a huge success based on what it was stock
link to the applet
http://linamariagiraldo.com/noc/week2_b/
and here is the video documentation:
Here is my second try using pVector with noise acceleration from Lina Maria Giraldo on Vimeo.






