Skip to content

Langton's Ant (cellular automata) implemented in processing

Notifications You must be signed in to change notification settings

dcts/langtonsAnt-processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

langtonsAnt-processing

Langton's Ant implemented in processing. 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

// parameters used for demo
int nbrOfCols   = 210;
int nbrOfRows   = 150;
int pxPerCell   = 3;
int renderSpeed = 1500;

langtonsant

Red Rendering (coming soon)

This rendering option is currently in development (see branch "RedRendering") langtonsantred

About

Langton's Ant (cellular automata) implemented in processing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published