Nature of Code: Week 10 assignment–Moon(Candy)

Documented by: Candy Bi

Project name: “P5″

Professor: Moon

Date: 4/23/2019

Link: https://editor.p5js.org/candy/present/Fa4vDtNzZ

Video: w10 final

This week we learn about “Atonomous Agency”. I feel that this could be a great way to do the effect I have seen long time ago: lots of particles make up some text, and when mouse hover onto it, the particles would be scattered and would go back to where they should be when mouse leaves.

Sinece this project is made in p5, I decide to make the particles writing “p5”. I first drew the “p5” through pushing the particles as several rectangle shape.

Through later Skye said it looks like “ps”, I feel that it works quite well.

Then I try to map the force accoding to particles’ current position and their original position and apply the force to each particle.

A red dot is used as an object whose position is set according to the mouse position. The red dot is used as the target for particles to check.

Leave a Reply