Skip to content
The Scroll Art Museum

Inchworm

Al Sweigart, 2024. A little inchworm that moves across the screen.

This is a one-line variant of scroll art, where the \b backspace character is used to erase text on the current line. Snail Trail is another example of this effect. This erasure technically violates one of the constraints of scroll art, but inchworms are cute.

In Inchworm, a string of letter O's do a simple inchworm crawling animation until it reaches the right edge, at which point, another inchworm begins on the left edge. The speed and length of the worms are adjustable and randomly set for each worm in this animation.

Python source code

Customize
Settings