Week 6 assignments

a,b,c) Create 3 compositions using the vector field. These can be interactive or static (meaning, the VF can change or not based on user input) based on input from the mouse, keyboard, or video / camera (as shows in the last example). Think about drawing and using the particles in an interesting way (not just circles, but how do draw images, use atan2, etc). Play with the damping forces inside of the particles. Make an interesting and unique field for the particles to move on. Be sure to experiment with turning off the drawing of the field. If you want to, think of a “game” based on this.

a) I made 2 vectors of particles, the first one circular movement and when it gets on the center it creates a vector for all the particles accordingly to sinusoidal information.


  • Source Code
  • b) I was trying to create a game. The idea is that the boat always increase it's x position, and the objective is get to the end of the screen. The whirlpools have a vector field for inward and clockwise force that will stop the boat. To make the movement of the boat look better I added some sinuidal movement on the y axis. Player can also control the boat using the arrow keys.
    It's not good yet though, got work more on it.

  • Source Code
  • b 2) Same thing as the first, but now the objective is the opposite, sink the boats. Boats are coming and by cliking the mouse, a whirlpool is created.

  • Source Code
  • c)Particles and vector field. The movement of the particles adds force to the vector field that is reinitiated by pressing space bar.

  • Source Code