Sharing code to help the community

I use processing on a regular basis to implement simple things that I think are cool. Recently, it came to my mind that people may want to see some of the things I do, or use it instead of having to make it themselves.
I was wondering how can people share their work with the community ? Is there needs to implement some algorithm in Processing to simplify the work of artists and creator that use it ?
For exemple, I’ve implemented a basic Delaunay Triangulation, a program that can make all 150 elementary CA by saying the rule you want to use, and I’m currently trying to make the Wave Function Collapse algorithm.
Would any of those be of any use to anyone or are there already some processing library out there that can do those things well ? Sorry if it’s the wrong category.

6 Likes

I don’t know if these are useful, but don’t get me wrong, they could be. You never know what spark, idea or piece of code triggers to motion. It might not happen straight away, but I’m sure something will happen. These things are like seeds, they need some time and suitable circumstances to germinate and then they’ll grow and blossom.

2 Likes

Yeah.

I mean this forum has a gallery section to present results.

You could also make a library or tool.

You could post on github and link here to it

1 Like

Have you looked at posting code on openprocessing.org? On that site people can view both the code AND the visual result alternately with a single mouse click. And I find it informative to see the many different ways to approach code solutions.
I think it’s a good idea!
:nerd_face:

3 Likes

Completely agree with what was already said.

Ways to share your work with the community:

  1. create a GitHub repo or post on a sketch host webservice, e.g. openprocessing.org
  2. post an announcement on #gallery or Libraries on this forum

There are also projects where you can contribute simpler code examples – such as Rosetta Examples.

1 Like

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:

with an extensive previous discussion started by @solub here: "Wave Collapse Function" algorithm in Processing

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/

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.

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:

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

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”:

1 Like