DLA Crystal Simulation

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

Source code: dla_2

Restart the DLA simulation by clicking on the crystal. Try adjusting the growth parameter (set using the slider at the bottom of the screen). The higher the number shown in the slider, the quicker the crystal will grow. The effects of changing the growth parameter are most dramatic after a restart. (For example, try restarting with a growth factor of 5).

The crystal is initially "seeded" with 4 points in the centre of the screen.

Boiled down, the algorithm is as follows:

As the crystal grows, more and more particles are added to the simulation. The radius of the band where the new particles are placed also grows with time, based on the growth factor set by the user.

To inhibit grey particles from moving too far away from the crystal to be useful, a weak pseudo-gravity was implemented.

Note: An interesting side-effect of the crystalization is that once particles reach the outer edges of the screen they will start to crystalize on the word "growth" beside the slider.

Shout out to Andreas Schlegel for the controlP5 library.

Built with Processing

Return to Stung Eye