Words in shape / Word Clouds in custom shape

Hello,

I’ve searched the Forum (& Google) in order to find an example of presenting a bunch of words in a custom shape,
the so named Word Clouds.

The best examples I’ve found are these:
http://tagul.com/gallery
http://www.mosaizer.com/Wordaizer/
another great example:
http://itunes.apple.com/app/wordfoto/id414002091?affId=1860684&mt=8&u1=web

There are some libraries for processing - word cram and wordookie, but I find nothing for openframeworks/c++

Any suggestion is welcome :slight_smile:

1 Like

i remember this one http://levitated.net/daily/levEmotionFractal.html from levitated
it is a simple algorithm and it is quite easy to port i remember i’ve ported it to processing.org a long time ago…

Hm, I think I found “the source”:
http://stackoverflow.com/questions/342687/algorithm-to-implement-a-word-cloud-like-wordle

And a very good implementation written in JavaScript:
http://www.jasondavies.com/wordcloud/#http%3A%2F%2Fsearch.twitter.com%2Fsearch.json%3Frpp%3D100%26q%3D%7Bword%7D@cloud
which I hope is not that hard to port in c++.
But I still need an algorithm which can fill a shape (contour) relatively in realtime.

You’re looking for either “circle-packing” or “2D box packing” and luckily for you there are tons of resources and code examples to learn from, among them the openprocessing list: http://www.openprocessing.org/tools/search.php?q=packing

Thank you Joshua! Found very interesting implementations.

https://github.com/juj/RectangleBinPack