Click the arrows to set the turning rule for tiles with the same color as the button. Then click start and watch the ant do its work.
Thanks to papipupepappa for the original project Langton's Ant.