Viewing Blog _why new blog (http://hackety.org) discovered
Scribble!
which is a Ruby version of NodeBox . Allows very cool drawings using Ruby. I wanted to try Linux, but found no documentation so I had to research how to install it. I got to work on Ubuntu running the following: and install gtk2 libraries for ruby \u200b\u200bcairo:
sudo apt-get install libcairo-ruby1.8-ruby libgtk2
svn co svn: / / hamptoncatlin.com / scribble / trunk scribble
-
scribble execute: cd
bin scribble / scribble -
execute
This Scribble! and we can make pictures like this:
This picture is almost unique in that 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
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 ×
do
circle: center => [rand (size [0]), rand (size [1])],: radius => rand (50) + 10 end
If you are motivated and create a cool design with Scribble! Share putting the source code as a comment on this entry;)
0 comments:
Post a Comment