Hi,
Does anyone know where to find example code or a tutorial to do simple
animations using ruby? E.g. making an object slide from one point of a
screen to another
Hi,
Does anyone know where to find example code or a tutorial to do simple
animations using ruby? E.g. making an object slide from one point of a
screen to another
You could use Canvas and put a rect on it, and slide it to the right
side
I am not sure if this is possible with Images too, but I think it is
somehow.
Am Montag, den 17.03.2008, 10:56 +0100 schrieb Foo Gwen heong:
Hi,
Does anyone know where to find example code or a tutorial to do simple
animations using ruby? E.g. making an object slide from one point of a
screen to another
Hi,
can you specify what you want to do?
Do you think about something like xpenguin, where a shaped window goes
around the screen? Then look at Gtk::Window.move
If you want an image or some widgets go around in an other window, look
at Gtk::Fixed.
If you want an image only slide in an other window, so you can see
different parts of it, look at Gtk::ScrolledWindow. To move it around
just update the associated Gtk::Adjustment(s).
You could also blit your Image as a Gdk::Pixuf onto a Gtk::Drawable.
Also the usage of Cairo is possible.
Cheers, detlef