# Wolfram Physics in Vanilla Processing

**URL:** https://discourse.processing.org/t/wolfram-physics-in-vanilla-processing/25153
**Category:** Gallery
**Created:** [November 3, 2020, 10:41am UTC](https://discourse.processing.org/t/wolfram-physics-in-vanilla-processing/25153 "2020-11-03T10:41:54Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [November 6, 2020, 1:29am UTC](https://discourse.processing.org/t/wolfram-physics-in-vanilla-processing/25153/7 "2020-11-06T01:29:24Z")

</div>

I’ve made my own conversion to PDE Java 7 syntax from the original Python Mode sketch below: 🐍

> [@"Small Universes" : Pattern hunting with the Wolfram Physics Project](https://discourse.processing.org/t/small-universes-pattern-hunting-with-the-wolfram-physics-project/24001/3):
>
> Simpler examples in 2D: – rule [WM148](https://www.wolframphysics.org/universes/wm148/) : [(x, y)] -\> [(x, y), (y, z)] x, y, z = 0, 1, 2 arr = [(x, y)] steps = 4 for step in xrange(steps): temp = [] #temporary array to store new pairs of nodes for i, (x, y) in enumerate(arr): new\_pair = (y, z) #create a new pair connecting 'y' to 'z' idx = 2\*i+1 #compute its future index in array (next generation) temp.append((new\_pair, idx)) #store it with its index z += 1 [arr.insert(i, p) for p, i…

Not only it runs on Processing 3 but also on browsers via [Processing.js](https://gotoloop.github.io/processing-js.github.io/reference/) (Pjs) + [Toxiclibs.js](http://haptic-data.com/toxiclibsjs) libraries. 🥳

There are some added small features like left-click pause/resume, right-click restart, middle-click toggle rendering, number keys for changing background color and key S for a snapshot! 🎨

Click the button “View App” at the right bottom side in order to run the sketch: 🏃‍♂️

https://glitch.com/embed/#!/embed/blob-growth-java?path=Blob_Growth.pde&previewSize=0&sidebarCollapsed=true

---

_[View the full topic](https://discourse.processing.org/t/wolfram-physics-in-vanilla-processing/25153)._
