Experiment: FLOW - PhotonBursted/PIE GitHub Wiki
FLOW
The FLOW algorithm works following a pretty standard principal.
- Node placement.
nnodes are to be created and receive a random color. - Node addition.
The nodes that have been created are placed in the activity queue. - Node selection.
A random node from the activity queue is marked as "visited" and is removed from said queue. - Imprinting.
The chosen node imprints their color into theBufferedImage. - Reproduction.
This means the node will essentially add its direct, unvisited neighbors to the activity queue. - Calculation.
The newly added neighbors will receive a color that is based on their neighbors.
This color basically consists ofaverage color of visited neighbors +/- rnd.
rndis a randomly generateddoublebetween0anddelta.
Step 3-6 are repeated as long as the activity queue remains populated.
n and delta are both parameters that are required by the user before the algorithm starts.