That would be this:

flash
"Flash me"
1 to: 2 do:[:i|
self color: Color black.
self world doOneCycleNow.
(Delay forMilliseconds: 50) wait.
self color: Color white.
self world doOneCycleNow.
(Delay forMilliseconds: 50) wait.
].

Karl


On Mon, Jun 30, 2014 at 11:04 PM, Bert Freudenberg <bert@freudenbergs.de> wrote:

On 30.06.2014, at 21:54, tim Rowledge <tim@rowledge.org> wrote:

>
> On 30-06-2014, at 12:52 PM, Chris Muller <asqueaker@gmail.com> wrote:
>
>>
>> We probably need to decide whether we want #flash to be a debugging tool or something any morph should be able to do in a way that properly integrates with the Morphic framework...
>>
>> It seems we want it fairly often-enough as a IDE tool, I wouldn't be opposed to a small delay...
>>
>>
> Seems pretty obvious to me - add a #slowFlashAlert method and leave the plain flash alone.
>
> tim

UserDialogBoxMorph has a special flash method that is nicely visible. Try this and click outside:

        self confirm: 'foo'

For a general (non-modal) version it would be nicer to use alarms instead of delays, but I like the "double blink" effect.

- Bert -