Repelling Particles in Java + Processing
Автор: Barney Codes
Загружено: 2018-04-16
Просмотров: 7525
Описание:
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 files from this challenge on github: https://github.com/BarneyWhiteman/Cod...
Get Processing from here: https://processing.org/
Check out the rest of the Coding Challenges here:
• Repelling Particles in Java + Processing
Follow me:
Support the channel: https://www.youtube.com/@BarneyCodes/...
Twitter: / barneycodes
Reddit: / barneycodes
#creativecoding #processing #java
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: