NOC – Week 6: Forces(2) – Jingyi Zhu

Link: https://editor.p5js.org/jz1111/present/m-utJ5G5_

Date: 03.26.2019

For this week’s assignment, I created particles in two environments. My goal is to create a smooth and comforting visual effect with attraction and collision. The particles are affected by stronger friction in the outer environment. They are affected by weaker friction and attraction of the mouse in the inner environment.

The particles are release with a small acceleration, so they are still at first. If multiple particles are generated closely enough, they will fiercely repel each other and make the effect of blasting. The particles repel each other slightly, so they move slowly outwards. Upon collision, the particles will exchange colors, which creates a flickering effect.

Wind is applied when the key board is pressed. The particles are blown upwards.

I wanted to constrain the particles in the environment where they are generated, but I wasn’t able to fix the problem of applying forces and positioning when particles collide with the edge. Interestingly, the visual effect without collision with the edge is more comforting.

Leave a Reply