Ants

I came across this concept a while back but did not have a way to demonstrate once I got done playing with it. It is called Langton’s Ant. Of course I could not just implement it at the pixel level, I needed to make the ant and have is scalable.  That led falling down a rabbit hole of HTML Canvas peculiarities. What I thought would not take much time has already taken a day.

Here are a couple of graphics I generated while in the rabbit hole.

Wall of ants. This looks interesting. I had put the image at full scale then placed the scaled ants in every grid.
Ants showing the four directions I will need. I could have just taken the ant and rotated it in Inkscape but that would have been too easy. Now I just have a problem of the ants not showing the color below even though they should have the proper alpha setting.