rm-hull / four-bugs.cljs
Last updated

Although this gist is not exactly the four bug problem (where bugs/mice/insects are placed at the corners of a regular polygon, and each bug then begins to move towards its immediate neighbour in an counter-clockwise direction), it started out with that intention. Instead, because the angles are quite shallow and the lines close together, an interesting interference sub-pattern appears as the polygon rotates. Presently the parameters are fixed, but I will make it user configurable as there are many interesting shapes and patterns to be explored.

Fork me on GitHub!