Looking at the new blog of _why (http://hackety.org) I found Scribble! that it's a Ruby version of NodeBox. Its aim is to make cool graphics using Ruby.
If you want to test it using windows, you can follow the instructions at http://nex3.leeweiz.net/posts/3
I wanted to test it in Linux but I didn't found related information, then I did some research on how to install it. Finally, I made it work in Ubuntu following these steps:
- Install cairo and gtk2 ruby libraries and get the scribble code:
sudo apt-get install libcairo-ruby1.8 libgtk2-ruby
svn co svn://hamptoncatlin.com/scribble/trunk scribble - Execute scribble:
cd scribble
bin/scribble
With these steps we'll execute Scribble! and we can do graphs like this:
This drawing is uniq because it is randomly generated from this code:
brush.fill = rand(0.1) + 0.9, rand(0.4) + 0.6, rand(0.1) + 0.9, rand(0.1)+0.1
blanket
brush.fill = rand(0.1) + 0.9, rand(0.4) + 0.6, rand(0.1) + 0.9, rand(0.1)+0.1
brush.stroke = rand(0.4) + 0.6, 0, 1, 0.2
brush.width = 2
100.times do
circle :center => [rand(size[0]), rand(size[1])], :radius => rand(50) + 10
end
If you like Scribble! and make some cool graphics, share it putting its code as a comment in this post ;)
No comments:
Post a Comment