Skip to content
Ecce Signum

Ecce Signum

Immanentize the Empathy

  • Home
  • About Me
  • Published Works and Literary Matters
  • Laboratory

Another New Old Project: Langton’s Ant

2020-09-14 John Winkelman

Click here to see Langton’s Ant in the Labs.

I probably could have posted this project before the 3D version, but the 3D version was already done in Javascript, and besides: 3D is just cool!

The above screenshot is taken at just over 10,000 iterations into the animation. Langton’s Ant will, if undisturbed, create a “highway” which will proceed off into infinity unless the world it is crawling wraps at the edges, as this one does.

If you have seen one Langton’s Ant animation you have probably seen them all, though in this one I added a heat map which shows the number of times the Ant has visited each cell. It will take a while to begin to see different colors, and everything will look blue for quite some time. The above screenshot of the heat map was taken at approximately 100,000 iterations.

As with all of my experiments, all of the code is contained in a single page for easy download and modification. I did not use any external libraries and I commented the Javascript for ease of reading and interpretation. Enjoy!

Posted in Programming, UncategorizedTagged cellular automata, Javascript, Langton's Ants

Post navigation

Feeding the Beast
Summer Done Gone

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Personal website of
John Winkelman

John Winkelman in a diner in San Francisco

Archives

Categories

Posts By Month

September 2020
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Aug   Oct »

Twitter Feed

JohnWinkelmanJohn Winkelman@JohnWinkelman·
15 Apr

4 of 5 stars to The Making of the Indebted Man by Maurizio Lazzarato https://www.goodreads.com/review/show?id=3934132499

Reply on Twitter 1382837596775137282Retweet on Twitter 1382837596775137282Like on Twitter 1382837596775137282Twitter 1382837596775137282
JohnWinkelmanJohn Winkelman@JohnWinkelman·
15 Apr

I just backed European Astrobiology Institute presents "Life Beyond Us" on @Kickstarter https://www.kickstarter.com/projects/laksamedia/european-astrobiology-institute-presents-life-beyond-us?ref=android_thanks_twitter_share

Reply on Twitter 1382512100136906753Retweet on Twitter 1382512100136906753Like on Twitter 13825121001369067532Twitter 1382512100136906753
JohnWinkelmanJohn Winkelman@JohnWinkelman·
9 Apr

Yeah, that would have been a totally different movie.

Alex de Campi@alexdecampi

Clockwork Orange, hat test, 1971

Reply on Twitter 1380494051548487681Retweet on Twitter 1380494051548487681Like on Twitter 1380494051548487681Twitter 1380494051548487681
Load More...

Links of Note

Reading, Writing
Tor.com
Locus Online
The Believer
File 770
IWSG

Watching, Listening
WYCE Electric Poetry
Writing Excuses Podcast
Our Opinions Are Correct

News, Politics, Economics
Naked Capitalism
Crooked Timber

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

© 2021 Ecce Signum

Proudly powered by WordPress | Theme: x-blog by wpthemespace.com