# Sharing code to help the community

**URL:** <https://discourse.processing.org/t/sharing-code-to-help-the-community/21282>\
**Category:** Development\
**Created:** [May 25, 2020, 1:56pm UTC](https://discourse.processing.org/t/sharing-code-to-help-the-community/21282 "2020-05-25T13:56:17Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 27, 2020, 7:16pm UTC](https://discourse.processing.org/t/sharing-code-to-help-the-community/21282/6 "2020-05-27T19:16:29Z")

</div>

Regarding some of the things you have been working on – there are a few existing implementations that I’m aware of. Possibly worth consulting for ideas, contributing to or forking, or differentiating from.

### Wave Function Collapse

One approach to Wave Function Collapse in Processing is here:

> **[BitwiseSupernova/wave-function-collapse](https://github.com/BitwiseSupernova/wave-function-collapse)**
>
> Wave function collapse implemented in Processing. Contribute to BitwiseSupernova/wave-function-collapse development by creating an account on GitHub.

with an extensive previous discussion started by @solub here: ["Wave Collapse Function" algorithm in Processing](https://discourse.processing.org/t/wave-collapse-function-algorithm-in-processing/12983)

### Delaunay Triangulation

There are a few implementations, but the Mesh Library by Lee Byron is one of the longest established / best known.

[http://leebyron.com/mesh/](http://leebyron.com/mesh/)

However, that doesn’t mean that a different approach doesn’t have value! In practice, often several different implementations suit different needs. For example, there are multiple Processing libraries that each wrap JBox2D for 2D physics. Also, sometimes a recent / up-to-date implementation is a contribution in itself, as libraries can grow old and stop working (as well) with recent versions of Processing or PDE.

If you are interested in browsing for what is already out there while working on your own code to help the community, try searching the forum for keywords. You can also check out Archive for Processing, which mirrors several hundred github repos of interest.

> **[Archive for Processing](https://github.com/archive-for-processing/)**
>
> an (unofficial) archive of Processing community resources - Archive for Processing

### Cellular Automata

For CA libraries, I’m not sure. I believe there was once a Processing2 CA library by Francis A. Bitonti ~2007-09 – see wayback archives:

- [https://web.archive.org/web/20130114225435/http://cellularautomata.fadarch.com/](https://web.archive.org/web/20130114225435/http://cellularautomata.fadarch.com/)
- [https://web.archive.org/web/20090226213147/http://www.fadarch.com/ca/](https://web.archive.org/web/20090226213147/http://www.fadarch.com/ca/)

…and I believe there there is a writeup of a CA library for Processing(?) by Brandon James DeHart ~2011.

> **[(PDF) Design and Implementation of a Framework for the Interconnection of...](https://www.researchgate.net/publication/266469404_Design_and_Implementation_of_a_Framework_for_the_Interconnection_of_Cellular_Automata_in_Software_and_Hardware)**
>
> PDF | There has been a move recently in academia, industry, and the consumer space towards the use of unsupervised parallel computation and distributed... | Find, read and cite all the research you need on ResearchGate

However, I don’t personally know of one that works for Processing 3 today. Maybe somebody else will have a suggestion.

The two existing one-off CA demos in the Processing example set are “wolfram” and “gameoflife”:

- [https://processing.org/examples/gameoflife.html](https://processing.org/examples/gameoflife.html)
- [https://processing.org/examples/wolfram.html](https://processing.org/examples/wolfram.html)

---

_[View the full topic](https://discourse.processing.org/t/sharing-code-to-help-the-community/21282)._
