An open API service indexing awesome lists of open source software.

https://github.com/dcts/langtonsant-processing

Langton's Ant (cellular automata) implemented in processing
https://github.com/dcts/langtonsant-processing

cellularautomata langtonsant processing

Last synced: 3 months ago
JSON representation

Langton's Ant (cellular automata) implemented in processing

Awesome Lists containing this project

README

        

# langtonsAnt-processing
[Langton's Ant](https://en.wikipedia.org/wiki/Langton%27s_ant) implemented in [processing](https://processing.org/). Coded at Processing Community Day (09.02.2019 @ HeK Basel). To start just run the scetch `langtonsAnt.pde`. You can change some parameters if you like:
- **nbrOfCols**: determines the nbr of cells on the x-axis
- **nbrOfRows**: determines the nbr of cells on the y-axis
- **pxPerCell**: how big is each cell? (min value allowed is 2)
- **renderSpeed**: set between 1 (slow) and 5000 (fast)

The size of the window is determined by these parameters (`windowWidth = nbrOfCols*pxPerCell` and `windowHeight = nbrOfRows*pxPerCell`). If the windowsize is higher than your screensize the algorithm will not start and a message is displayed to the console. Have fun!

## Demo
```java
// parameters used for demo
int nbrOfCols = 210;
int nbrOfRows = 150;
int pxPerCell = 3;
int renderSpeed = 1500;
```
![langtonsant](https://user-images.githubusercontent.com/44790691/53268564-c0691180-36e6-11e9-8e4d-fdf84d8f698f.gif)

### Red Rendering (coming soon)
This rendering option is currently in development (see branch "RedRendering")
![langtonsantred](https://user-images.githubusercontent.com/44790691/53277573-cd94f900-3704-11e9-8594-881136206bf9.gif)