jqueryhtmltag-cloud

Building a Word Cloud Jquery / HTML5 plugin


I'm searching for a code that will help be build a tag cloud like in this example. You can see that the words can even be embedded inside the spaces in the letters. The tag cloud should be based on weight, so words with higher weight will apear larger.

I want to create the exact same effect as in the link I've provided. I don't mind basing my plugin on an already existent plugin that does the same. Thanks in advance.


Solution

  • The code for that page is on GitHub:

    Skimming the code it looks like it draws the text onto the canvas then reads back pixels from the canvas to find empty spaces to fill with more words.