From: Paul Smith Date: 2009-12-05T01:42:55+09:00 Subject: Re: Graphics mode again On Fri, Dec 4, 2009 at 4:12 PM, Teodor Carstea wrote: > It works! As you said, a single ball on the screen. > > Question 1: what kind of parameters a these: > >>:x1 => 10, :y1 => 10, >>:x2 => 20, :y2 => 20, > > is it a kind of width/height? which variables point to the center of da > ball,? I need it in order to manage its position using the coordinates. > He already told you he used Gnome Canvas. He already showed you a link he found from Google. I suggest you start doing some independent research from here. You've been given many very good starting points. What else do you want us to do, write the whole application for you? > Question 2: > > what method like "repaint()" or "clrscr()" or "cleardevice()" could I > use in Ruby to make the ball dissappear? Stop thinking in terms of your existing C++ graphics library. Graphics does not work like that any more. Pick a graphics library to use, and read up on it. This example was in Gnome. Join a Gnome mailing list. Read tutorials on Gnome. Buy a book on Gnome. However suits you. > > Thanks a lot! > -- > Posted via http://www.ruby-forum.com/. > > -- Paul Smith http://www.nomadicfun.co.uk paul@pollyandpaul.co.uk