drunkards walk

These random walks are created by examining text from an RSS feed. The idea is to look at each word compared to a randomly selected character (X) and examine both the ratio (R) of the occurrence of that letter to the length of the word as well as the density (P) of that letter within the word. A high ratio (R~1) is seen visually as a longer line segment and densities are seen on a color scale from blue to orange. The angles between two line segments A and B are determined by the length of A. For example, if A represents a high ratio, the amount of divergence is chosen as a random number between (1-R) x 2pi, which as R approaches 1 becomes closer and closer to 0. There is one other random element at play: if R=0, a second ratio (S) is examined, which is the total occurance of X over the total number of characters so far examined. A random number (D) is chosen between 0 and 1. If D<S then R is automatically set to 1.

You can view a live example of the project here.