The images are created in the following way:
- An agent wants to move from a random point on the screen, to another random point.
- An algorithm (Dijkstra or AStar) computes the shortest path between the points (where darker pixels of the target image are 'quicker' to move through).
- The path is marked by a very feint line.
- Repeat a few thousand times.
Here's a selection of outputs:
Possible improvements:
- Make it multi-threaded so runs quicker.
- Allow images to be enlarged to any size.
- Draw alternate RGB lines to build color images.
No comments:
Post a Comment