I'm pretty new to d3, and am looking for some nudges in the correct direction for obtaining an effect I would like. The essence of what I want to do is create a word cloud (see Word Cloud Generator) but restrict all words inside or outside of a complex boundary. Imagine I drew the complex outline of a flamingo (i.e., a shape not easily generated directly in d3/mathematically) in some vector-based drawing program such as illustrator, and I'm interested in restricting all of the words that make up my word cloud either inside or outside the flamingo. Unfortunately my image won't be a flamingo... but you get the idea. The most complex shapes that I've encountered in d3 thus far, to which people map data, are probably geo-json coordinates, but I'm not sure if you can export a vector based-image in such a format.
As with many d3 beginners, I'm still becoming more familiar/comfortable with everything web (svg, javascript, dom, css, etc) and so I'm really looking to just get a nudge in the direction of the easiest/most direct way to obtain this effect, and with a few key words I am happy to continue googling/researching on my own. A handful of searches with the key words I've considered so far hasn't been very fruitful so I thought I'd ask for suggestions here.