HowTo make a marching ants border in Morphic?

Posted by Helene Bilbo on Stack Overflow See other posts from Stack Overflow or by Helene Bilbo
Published on 2012-09-12T18:09:42Z Indexed on 2012/09/13 15:38 UTC
Read the original article Hit count: 279

I am looking for a marching ants border or line in Morphic:

Marching Ants sample

Wikipedia describes a possbile algorithm:

The easiest way to achieve this animation is by drawing the selection using a pen pattern that contains diagonal lines. If the selection outline is only one pixel thick, the slices out of the pattern will then look like a dashed line, and the animation can easily be achieved by simply shifting the pattern one pixel sideways and redrawing the outline.

As there is probably none readymade, has anybody a hint for me how to create such a border or line?

(The marching ants pattern as a GIF animation is licensed under CC by Uli Kusterer)

© Stack Overflow or respective owner

Related posts about smalltalk

Related posts about squeak