Re: Line Problem
jon klein <[email protected]> Sun, 9 Jan 2005 12:20:19 -0500
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Jan 6, 2005, at 9:47 PM, Willian Filus wrote: > I am not obtaining to draw a line between two balls, somebody I could > give an aid to me > self set-color to (1.0, 0.0, 0.0). > > self set-shape to (new Sphere init-with radius > .1). > > self add-line to Ball2 with-color (1.0, 1.0, > 0.0). "Ball2" is the name of one of your classes. You can't add a line to the class itself, you have to add a line to an instance of the class. > theBall = new Ball. > > theBall2 = new Ball2. > > theBall3 = new Ball3. So here you've created an instance of each of these three classes. To add a line between two of them, you would do: theBall add-line to theBall2 with-color (1.0, 1.0, 0.0). - jon klein _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve