Page 1 of 1

Using Ruby for Drawing

Posted: Tue Feb 25, 2014 2:02 pm
by chriso777
I'm doing an experiment where I'm trying to use Flowstone's drawing features in Ruby to create a sort of Microsoft paint. I'm not the best programmer in the world, and I'm sorta new to Flowstone. What my idea was, was that I could tell Ruby to draw a new circle every time the mouse moves (with all the circles layered on top of each other, it would make a line). The way I could have this be done is by creating some type of loop where the draw method is acted on repeatedly. Now, for this to work, the draw method would have to technically be called every time the loop repeats itself. The issue I'm having is that it seems the draw method is a one-time thing, meaning it's either in the code or it's not, so it can't really be turned on and off, and it can't be called more than once without just writing it out again. Insight? Thoughts? Just any sort of help would be great. Thanks!

-Chris