Diffusion Limited Aggregation — DLA

What is DLA: DLA is a simulation where particles randomly walk around until they touch a growing crystal and stick permanently. Invented in 1981, the same algorithm describes lightning, snowflakes, coral, and river deltas. Simple rules, infinitely complex results.

My Simulation: https://arcade.makecode.com/S25526-63237-91996-72502, I would love to see what crystals you were able to generate. And any feedback, and features I should add

Controls:

B to restart after the crystal is complete. (So you can look at the crystal once done), you should notice a variable that is named numWalkers, this determine how many particles are in the simulation (Increases speed of simulation).

And also stepsPerFrame, this variable determines how many steps a particle can move in a frame. The higher it is you may lose complexity in your strucutures. Setting it lower allows the particle to move more precisely and thus increase complexity.

3 Likes

Cool beans. XD! Super fun to see all the ways this can come together.

1 Like

This is pretty cool! This would be cool as a dungeon map generator.
Maybe you could make an addition to check for density on a given growth which could lead to thicker branches and softer turns!

Again, this is really cool!

2 Likes

This is very cool! I love to see makecode being used for more technical stuff.