Simulation of ant colony optimization on a canvas