# City growth example

**URL:** https://discourse.processing.org/t/city-growth-example/38562
**Category:** Project Guidance
**Created:** [August 30, 2022, 11:29pm UTC](https://discourse.processing.org/t/city-growth-example/38562 "2022-08-30T23:29:06Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![solub](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/solub/32/333_2.png) [@solub](https://discourse.processing.org/u/solub)
#### Post date: [September 1, 2022, 8:25am UTC](https://discourse.processing.org/t/city-growth-example/38562/3 "2022-09-01T08:25:32Z")

</div>

Hi @TimoL,

Could it be that you are looking for Jared Tarbell’s “[Substrate](http://www.complexification.net/gallery/machines/substrate/)” algorithm ?

If so, there’s a dedicated thread with example code you can find here, on this forum:

> [@Trying to understand the "Substrate" algorithm](https://discourse.processing.org/t/trying-to-understand-the-substrate-algorithm/3031):
>
> Dear all, I would really appreciate if someone could help me decipher some parts of Jared Tarbell’s “[substrate](http://www.complexification.net/gallery/machines/substrate/)” algorithm. For those who are not familiar with this famous sketch, here is a recap in Tarbell’s own words: A single line (known internally as a “crack”) begins drawing itself from some random point in some random direction. The line continues to draw itself until it either (a) hits the edge of the screen or (b) hits another line, at which point it stops and two more lines begin. Th…

For procedural city generation, there’s also [this approach](https://www.tmwhere.com/city_generation.html) from Sean Barrett which is a simplification of Parish and Müller’s [Procedural Modeling of Cities (2001)](https://graphics.ethz.ch/Downloads/Publications/Papers/2001/p_Par01.pdf) as explained [here](http://nothings.org/gamedev/l_systems.html).

 ![__](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/7/5/75d099cb286673cd6949526aa6616792997ad1c5.png)

---

_[View the full topic](https://discourse.processing.org/t/city-growth-example/38562)._
