Test of Processing for cars and roads for evacuation modeling. Create a grid of edges and nodes. Create 1000 cars positioned on 1000 random edges with slightly different random speeds. Optimize the grid drawing by caching the first image of the edges and nodes. The draw loop repositions the cars, changing edges when they get to the end of their current one.
Source code: RoadGrid Agent Edge Graph Node
Built with Processing