simple MagicCloud example

Simple demo of the MagicCloud gem, as the docs are not explicit about how to output an image:

require "magic_cloud"

words = [
 ['test', 50],
 ['me', 40],
 ['tenderly', 30]

cloud =, rotate: :free, scale: :log)
img = cloud.draw(800, 600)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s