Chips from the lathe

This first post of 2020 just shows some videos of projects from the past three months.

Here’s an improvement (I hope) of my previous attempt to simulate fire on a TFT display. I’ve added a glowing particles effect, did some parameter fine tuning and changed the color palette. The simulated area forms a layer over a jpg image, read from SD card.

Alas, my phone’s camera misses most of the improvements…


The next video shows the tesselation process of a 2D area according to the Majority Voting principle. In the initial state, every pixel randomly gets one out of three* possible colors. Then, in each (discrete and simultaneous) next step, every pixel takes the color of the majority of its ‘neighbours’. It’s no surprise that the chosen definition of neighborhood has great influence on this self-organizing process and its final state.

* The classical example uses 2 colors, but I chose to have 3 for a more fashionable (?) look.


Finally, meet Perrier Loop, the most complex Self-replicating Cellular Automaton that I managed to produce on a 320×240 TFT display (so far), pushing my cellular automata framework for ESP32 to its limits. Grid cells can be in one out of 64 states (colors). State transitions are governed by 637 rules that use 16 variables (placeholders for up to 7 states), so the real number of rules is much larger! Each cell complies to this same set of rules to determine its next state, based on its current state and that of its 4 orthogonal neighbours.

And the result looks so simple….