Terrapin Resources

A Single Line

Marc Weyl, a long-time Logo enthusiast, sent us the code listed below. It shows the power of Logo and is a wonderful illustration of how you can create complex drawings with just a few instructions.

His program combines music, art, and math with Logo code.

He calls it, “A single line. Each image is but a single line, bent but unbroken.”

The beautiful lines are accompanied by random musical notes, sometimes individual pitches, at other times chords.

Can you figure out how it works? It’s elegant and simple at the same time.

See a video of his ‘A Single Line’ Logo program in action.

Marc’s fascination with evolving geometric shapes can also be seen in another of his Logo programs.


Description Each a single line with musical accompaniment: simple, yet complex
Procedure SINGLE_LINE
Level Advanced
Tags Math, Drawing, Complex Images, Music