iBrasten

My methods of calculating time are far superior to yours, in every way.

About

This is the blog of Brasten Sager, a freelance software developer, Mariners fan (nevermind), guitarist, haphazard philosopher.

Scruffy 0.1.0

August 11, 2006 @ 05:04 AM

I released Scruffy 0.1.0 just before midnight this morning. 0.1.0 is the first release that I’m considering public. Support was added for rendering graphs to images (instead of SVG), as well as a legend.

Rendering to an image is fairly simple:
# Assuming graph is an instantiated Scruffy::Graph object

#Render to PNG
graph.render(:width => 800, :as => 'PNG')

#Render to PNG, save to file
graph.render(:width => 3500, :as => 'PNG', :to => )

You’d think you could save the SVG code to a file using o => ... without the :as option, but you’d be wrong. :) Expect to see that in 0.1.1.

I’d really like to get feedback from some people on this, but I should warn you that I expect to make some backwards-incompatible changes in the next week. I had some amazing ideas this morning on how to make the thing much more powerful and easy, and I’d like to get them in there are released ASAP. This likely means we’ll be jumping to 1.0.0 by the end of the week (backwards-incompatible releases usually require a whole version point increase).

But it will be worth it, I promise. :)

Anyway, go check it out.

0 Responses to “Scruffy 0.1.0”

Leave a Reply