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
- Host: GitHub
- URL: https://github.com/dcts/langtonsant-processing
- Owner: dcts
- Created: 2019-02-10T21:33:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T23:50:56.000Z (over 6 years ago)
- Last Synced: 2025-03-06T11:13:15.999Z (3 months ago)
- Topics: cellularautomata, langtonsant, processing
- Language: Processing
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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;
```
### Red Rendering (coming soon)
This rendering option is currently in development (see branch "RedRendering")
