Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

ScriptAWTRIX NG

Langton's Ant

On an AWTRIX display
Langton's Ant shown on an AWTRIX display
Langton's Ant · by Galadril

On your display

Two rules, ten thousand steps of chaos, and then it builds a road and leaves.

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Animations
Includes
Script

Runs on

  • Runs on 32×8 (TC001 & DIY)
  • Runs on 52×16 (TC002) 52×16 (TC002) version
  • Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.

Choose your display in the next step.

Send to AWTRIX

Choose your AWTRIX

Langton's AntAWTRIX NG script

Install this script on your AWTRIX NG. Its icons and sounds are installed with it.

Your AWTRIX’s local address, for example 192.168.178.39 or awtrix.local.

The name shown in your AWTRIX script list. Use letters, digits, hyphens or underscores.

Connection & device login

Connect your phone or computer to the same network as your AWTRIX. Allow local network access if your browser asks.

Use the device’s IP address, without a page path such as /#/apps.

If your AWTRIX requires a login, the username and password fields will appear when you connect.

Sign in to the Hub to install scripts. Attached files are installed separately.

Script description

Langton's Ant

Two rules, ten thousand steps of chaos, and then it suddenly builds a road.

Panels: 52x16 and 32x8

What it is

The whole program is two rules. On a white square, turn right, flip the square,
move forward. On a black square, turn left, flip it, move forward. That is all.

For about ten thousand steps the result is an expanding mess with no structure
anybody has been able to find in it. And then, with no change to the rules and
nothing triggering it, the ant starts building a perfectly straight diagonal
highway — and never stops.

What to watch for

The wait is the feature. If you leave it running and come back, the highway
is the thing you will notice. Getting there takes a few minutes at the default
speed.

Settings

  • Steps per frame (40, from 5 to 200) — how fast it works. Lower to watch
    the chaos; raise it to get to the highway sooner.
  • Colour (190, any hue) — the trail colour

More scripts in Animations

Something wrong with this script? Report it.