explode.explode()
Syntax
explode(root, nodes, x, y, max=50)
Description
Draws out the nodes list, branching from the central root positioned at (x,y). The maximum number of nodes drawn out is restricted to max. The nodes is a list in which each element is a list of leaves, for example: [["hamburger","cheeseburger"], ["pizza"]].
Example
Uses WordNet to draw out all the examples of the word container.
wordnet = ximport("wordnet")
explode = ximport("explode")
font("Dolly-Roman", 8)
fill(0.2)
strokewidth(0.5)
root = "container"
explode.explode(root, wordnet.hyponyms(root), 500, 500)