Random Boolean Network Patterns

A small project that creates mildly interesting visual patterns using random Boolean networks.

I made thing thing. It generates a random Boolean network and draws the nodes as squares with one of two colors depending on their values (1 or 0). I got the idea after watching this Computerphile video.

You can adjust the size of the network by changing the size of the squares; it will always draw the entire height of the window, so smaller squares means more nodes. You can adjust the average connectedness of the network by changing the number of input edges that each node takes. You can also change the colors.