Playing with I'itoi Labyrinth in PostScript
Home - Sun hat
Conditions of Use

Playing with I'itoi Labyrinth in PostScript

One day while looking for information on labyrinths and mazes I happened upon this page

and I noticed it could probably be generalized so I set out to do so and I've put the Postscript results here.

The labyrinths are completely created in Postscript and completely specified by three parameters: the number of cells, the number of layers in each cell and the radius of the hub. The animation frames are created as separate pages from lists of drawing procedures created by the program. The program can be instructed to either draw each ray or band or the rays and bands can be chopped up arbitrarily small for the animations and color gradients.

The curves which become more and more apparent as more cells and levels are added to the labyrinth can also be drawn over the labyrinth. They are the polar (r, theta) equivalent of an x, y line so they can be drawn by

r = rm - k*a
x = r*cos(a)
y = r*sin(a)

using tha angle a as a parameter and where rm is one half the width of a band added to the radius of the labyrinth and k is the band width divided by the ray angle.

More fun with animating:

Animated at the grossest level.

Labyrinths with an odd number of cells are a special case

Drawing the walls instead of the path.

Drawing all the walls at the same time.

Adding the path to that.

And the walls drawn separately with the path.

Application of color to the I'itoi walls and combining with two other files: a randomly generated maze-like pattern and a color wheel.

Home - Sun hat
Conditions of Use