Langton's Ant in Processing

Just a little fun Project to check out Processing: Langton’s Ant in Processing 3.0

Langton’s Ant is interesting, very simple algorithm produces an astonishing complex, random looking structure but may end in stable state in later cycles.

Langton’s_ant on Wikedia

Langton’s Ant on Numberphile

Screenshots

Round 672

Ant1

In The beginning it looks right compact and random.

Round 11564

Ant2

But after a while it turns into a stable state.

Code

BTW

Redstone Jazz has implemented Langton’s Ant within Minecraft.