An example of a rectangle using marching ants

The marching ants effect is an animation technique often found in selection tools of computer graphics programs. It helps the user to quickly distinguish an image selection border from the surrounding content by animating the border as a dotted or dashed line, where the segments appear to move in parallel along the border. The consistent movement of the black segments creates an illusion of ants marching in line, from which the name of the effect is derived.

The technique was first widely used by the MacPaint program developed by Bill Atkinson, and has since been adopted by many popular graphics programs like GIMP and Adobe Photoshop. The effect is also known as a marquee selection, as the effect resembles the chaser lights of a marquee sign.[citation needed]

Origin

edit

Bill Atkinson, the creator of the effect, conceptualized the effect while at a pub in Los Gatos, California. An electric Hamm's Beer sign was on display at the pub, which consisted of an illuminated scene with an animated waterfall seeming to flow into a lake. Atkinson figured that this effect could solve his problem due to its recognizability.

He implemented the idea and showed it to Rod Perkins from the Apple Lisa team, who told Atkinson the effect reminded him of "marching ants".[1]

Implementation

edit
Eight pixel patterns that can be used to produce marching ants

A common way to achieve the effect is by drawing the selection using a pen pattern that contains diagonal lines, and removing all but the outer edge. If the selection outline is only one pixel thick, the slices out of the pattern will then look like a dashed line, and the marching animation can easily be achieved by simply shifting the pattern one pixel and redrawing the outline. However, selection borders that are not parallel to the coordinate axes will reveal the underlying implementation and compromise the effect.[citation needed]

References

edit
  1. ^ MacPaint Evolution at folklore.org
edit

📚 Artikel Terkait di Wikipedia

When Johnny Comes Marching Home

"When Johnny Comes Marching Home" (Roud 6673), sometimes "When Johnny Comes Marching Home Again", is a song from the American Civil War that expressed

Ants Marching

"Ants Marching" is a song by American rock group Dave Matthews Band. It was released in September 1995 as the second single from their debut studio album

Lasso tool

to trace the edges of a selection, typically represented as a dotted marching ants line. Most software supports multiple closed contours, which can be

Bill Atkinson

drawing of circles by using the sum of consecutive odd numbers), regions, marching ants, the menu bar, the selection lasso, MacPaint (FatBits), HyperCard, Atkinson

Adam Ant

professionally as Adam Ant, is an English musician and actor. He gained popularity as the lead singer of new wave group Adam and the Ants and later as a solo

Dorylus

Dorylus, also known as driver ants, safari ants, or siafu, is a large genus of army ants found primarily in central and east Africa, although the range

Om Shanti Om

wife Gauri Khan under their Red Chillies Entertainment banner. While Marching Ants handled the publicity design, Gauri was the presenter. Shyam Kaushal

Fire ant

ginger ants and tropical fire ants. Many of the names shared by this genus are often used interchangeably to refer to other species of ant, such as