filmov
tv
C++/SFML - Coral Growth Simulation (15x speed)

Показать описание
Made in Visual Studio using C++ alongside the SFML-2.5.1 Library. This video shows a simulation of 2d coral growth using the Gray-Scott model of Reaction-Diffusion of 2 chemicals A and B.
In this video, Chemical A is shown as white, and Chemical B is shown as black. The entire grid is started with A = 1 and B = 0, and then a small area is seeded with B = 1 in the center. Because of the difference in concentrations, the chemicals begin to diffuse into each other, which can trigger a reaction creating more B and removing some A in the process, causing the patterns you can see.
In this video, Chemical A is shown as white, and Chemical B is shown as black. The entire grid is started with A = 1 and B = 0, and then a small area is seeded with B = 1 in the center. Because of the difference in concentrations, the chemicals begin to diffuse into each other, which can trigger a reaction creating more B and removing some A in the process, causing the patterns you can see.