On 2/4/10 7:18 PM, "Garret Raziel" <boloo...@gmail.com> wrote: > hi, can anyone help me with some code? I want to have a Morph object that > change his color by values that squeak gets from SerialPort. I have wroted > code of getting values and changing color but I dunno how to do that the morph > change its color forever. If i call method "AMorph changeColor" in some to:do: > it stucks and shows only last color. I want to use some kind of timer, that > will call this method every second and updates this Morph. what must I use? > > You should use step and stepTime methods. > > In step you put whatever you like your morph do. > In stepTime you put the time in milliseconds for each change > > I add a example, you could drag and drop on any Squeak you have and see a red > thing in the upper corner of Squeak telling the name of the current project > and position of mouse. > > Select load as morph. > > Edgar >
InfoMorph.morph
Description: Binary data
_______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners