When the position of the mobile is set to Outside, the mechanics are that of a wheel rolling clockwise along the outside of another wheel (or other shape). The diagram below shows how this work. Note that, in Spiro version 0.98, the pen is always attached to the mobile at the same angle.

Spiro draws a line by compute a series of position for the pen, by smoothly varying the angular distance travelled by the mobile. Each pen position is computed using the following basic procedure:
For a typical drawing, Spiro goes through this procedure about 20000-50000 times, drawing a dot for each location of the pen. When the dots are close enough together, they form a continuous smooth line.
When the position of the mobile is set to Inside, the mechanics are that of a wheel rolling counterclockwise along the inside rim of another wheel (or other shape). The diagram below shows how this work. Note that, in Spiro version 0.98, the pen is always attached to the mobile at the same angle.

The mathematics for the Inside mode are very similar to those described for outside.
The Spiro applet also supports a third mode of operation, called quasi-inside. This mode does not receive an explanatory diagram, because it doesn't really correspond to any physical system. In fact, the quasi-nside mode was a programming bug that happened to make cool-looking pictures, so it was honored with the status of a special mode.
The picture at right shows a close-up of how the dots work.
Notice that the dots normally have soft edges, this gives a
much smoother look to the line. For a typical drawing,
Spiro draws from 6000-60000 individual dots, each of which affects
roughly 4-25 pixels of the image.
Two parameters control
...more here...
[Ziring MicroWeb Home] [Spiro Applet Page] [Sign Guestbook]
This applet and accompanying back-end web system were written by Neal Ziring, last modified 6/5/00.