|
Re: moving eye in squeak: msg#00105lang.smalltalk.squeak.beginners
Hallo i want to write code for moving eyes just like the eyes in squeak logo.can I am a beginner too, but maybe I can help. Open a class browser. do a <find>. Look for MovingEyeMorph Check the protocol and the 6 instance methods. Dont forget the 2 class methods. Parent class is EllipseMorph. Look there too. Open a workspace. Type MovingEyeMorph new openInWorld. Do it. Back to class browser. Change defaultColor method first. Accept your changes. See what happens if you create a new MovingEyeMorph in workspace. Change IrisSize in class method inititialize. See again what happens. Play around with the other methods. There is no book about morphic. Buy A quick trip to objectland. This helps me a lot. Hope it helps
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | moving eye in squeak, mnrao |
|---|---|
| Next by Date: | Re: moving eye in squeak, Herbert König |
| Previous by Thread: | moving eye in squeak, mnrao |
| Next by Thread: | Re: moving eye in squeak, Herbert König |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |