WordSwarm
WordSwarm copied to clipboard
Cloud shape control
This is a great project. Thanks so much for your effort!
Is it possible to control the shape of the cloud? I was trying to discover this but couldn't find how the cloud shape is achieved. In the examples it seems to slowly elongate horizontally and I'm trying to keep it in a general shape. If so, how would I go about doing this?
Once able to control the shape, I was hoping to go even further to achieve something similar to the wordcloud library, where you can mask it to any given shape - (e.g. winter-themed cloud shaped as a snowflake).
The shape is 'controlled' as a multi-body gravitation problem attracted to an invisible center of mass. This is all done using the PyGame physics engine. You could probably write some objective function to make an arbitrary shape, but it would require some coding.
Great idea though, would be awesome if you could code that up. Unfortunately, I don't have the time.
What are you using it for?