JTF > Demo Gallery > acm.graphics > YarnPattern

This program illustrates the use of the GLine class to construct a geometric design in which a piece of colored yarn is wound around a set of pegs equally spaced along the edges of the canvas. At each step, the yarn is stretched from its current peg to one a fixed number of pegs further on.