Code in Place Final Project: Ant Trail

by Glenn S

Description

"Ant Trail" attempts to simulate the semi-random motion of an ant seeking food. The ant begins in the center of a 600x600 pixel canvas and a piece of food is randomly placed elsewhere. The path of the ant, shown in red, is random, but it can be biasedtoward the food by two parameters: the range (in pixels) within with the food can be smelled and the strength of the ant's attraction (0 to 1) to that food when it's inside that range.