# Diffusion Limited Aggregation — DLA

**URL:** <https://forum.makecode.com/t/diffusion-limited-aggregation-dla/42534>\
**Category:** Show & Tell\
**Tags:** game, graphics-and-math\
**Created:** [March 6, 2026, 5:44pm UTC](https://forum.makecode.com/t/diffusion-limited-aggregation-dla/42534 "2026-03-06T17:44:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaa](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@aaa](https://forum.makecode.com/u/aaa)\
**Post date:** [March 6, 2026, 5:44pm UTC](https://forum.makecode.com/t/diffusion-limited-aggregation-dla/42534/1 "2026-03-06T17:44:30Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![xInsqne1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/xinsqne1/32/34060_2.png) [@xInsqne1](https://forum.makecode.com/u/xInsqne1)\
**Post date:** [March 6, 2026, 8:23pm UTC](https://forum.makecode.com/t/diffusion-limited-aggregation-dla/42534/2 "2026-03-06T20:23:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/2/3209d4851b2eb88d969263e472f2d0519a25461f.png)

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/8/5802d1bee72fee5b2be285df0861fca21126a361.png)

---

<div class="post-metadata">

**Author:** ![BLADEr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blader/32/16422_2.png) [@BLADEr](https://forum.makecode.com/u/BLADEr)\
**Post date:** [March 7, 2026, 7:45pm UTC](https://forum.makecode.com/t/diffusion-limited-aggregation-dla/42534/3 "2026-03-07T19:45:37Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [March 12, 2026, 4:50pm UTC](https://forum.makecode.com/t/diffusion-limited-aggregation-dla/42534/4 "2026-03-12T16:50:18Z")

</div>

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