filmov
tv
Repelling Particles in Java + Processing
![preview_player](https://i.ytimg.com/vi/nfCoPSsAfHo/maxresdefault.jpg)
Показать описание
Particle simulations are really fun to program and to watch. In this coding challenge I create a colourful system of repelling particles. They all repel each other and the mouse leading to some fun, dynamic animation!
This coding challenge was completed using Processing which is a library built for Java that makes getting started in coding visuals a piece of cake.
The particle system uses custom classes and the basic of object oriented programming to create the particle objects. ArrayLists are used to store and manage all of the particles in the system.
Vectors are used to manipulate the velocities of each particle so that they are repelling each other (as well as the mouse)
Hope you enjoy the episode!
0:00 - Intro
1:30 - Particle object
6:45 - Movement
11:16 - Multiple particles
14:01 - Repelling each other
22:26 - Styling
29:14 - Final product
Make sure to check out the links below, they've got everything you need to get started!
Check out the rest of the Coding Challenges here:
Follow me:
#creativecoding #processing #java
This coding challenge was completed using Processing which is a library built for Java that makes getting started in coding visuals a piece of cake.
The particle system uses custom classes and the basic of object oriented programming to create the particle objects. ArrayLists are used to store and manage all of the particles in the system.
Vectors are used to manipulate the velocities of each particle so that they are repelling each other (as well as the mouse)
Hope you enjoy the episode!
0:00 - Intro
1:30 - Particle object
6:45 - Movement
11:16 - Multiple particles
14:01 - Repelling each other
22:26 - Styling
29:14 - Final product
Make sure to check out the links below, they've got everything you need to get started!
Check out the rest of the Coding Challenges here:
Follow me:
#creativecoding #processing #java
Комментарии