Word cloud SVG

hi all,

I did not find a dotnet word cloud implementation that draws inside svgs, so I decided to try this in gamma. ok works so far, bounding boxes for each character would make it more accurate. but how the hell do I do something like this:

auto_tweet_wordcloud

Is there a way to convert text to polygon and then do a hittest? very expensive.
Or create pixel data of the word and then use a CS to pipet for each pixel?
They have to use something smarter than this…

Maybe search for “packing algorithm” or “polygon packing”.
Another idea off the top of my head (don’t know if it is viable at all): Use (2D) physics, e.g. a force pulling all objects together.

Did you see the “Packing Characters” example in the helpbrowser? this is what it does:

grafik

2 Likes

perfect!!

packing was the magic word

thx

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.