this project is a simulation of langton's ant. the red pixel is hte "ant". It works like this. if the ant is touching a grey square, it turns 90 degrees left. if it is touching a white square, it turns right. It flips the square it is touching to its opposite color. then it moves forward and repeats.
press space to start. if you want, draw a picture first, press space, and watch the ant destroy it!
WARNING: Once the ant highways (read the link above), it will stop working when it hits the edge. press the flag again to start over.