Word Cloud

Definition

Word Clouds are typographic elements to depict textual structures. A text or word cloud visualizes word frequency in a given text as a weighted list.

Perception

Algorithm

The word cloud layout algorithm is straightforward. For each word, an outgoing spiraling path centered at the center of the drawing area is generated. Words are moved stepwise along the path. At each step, if the word is place in the canvas if there are no collision with other words. The computation of collisions uses OBBs and the Separating Axis Theorem.



The JavaScript Code