/*

* Another tesselation -- the "foursome" rule interlocks four 
* copies of the basic shape at 90 degree rotations from each 
* other. (Try removing the "3D"s to see this more clearly.) 
*
* Be sure to reduce the minimum shape size for full effect.
*/

startshape begin

tile { s 400 }

path tessellator {

MOVETO { x -35  y  50 }
LINETO { x -35  y  20 }
LINETO { x -85  y  30 }
LINETO { x -95  y -30 }
LINETO { x -65  y -20 }
LINETO { x -35  y -50 }
LINETO { x  -5  y -20 }
LINETO { x -15  y  10 }
LINETO { x  45  y   0 }
LINETO { x  35  y -50 }
LINETO { x  65  y -50 }
LINETO { x  95  y -10 }
LINETO { x  85  y  20 }
LINETO { x  95  y  30 }
LINETO { x  65  y  50 }
LINETO { x  45  y  20 }
LINETO { x  35  y  30 }
LINETO { x   5  y  20 }
CLOSEPOLY { }
STROKE { width 2 }

}

rule tessellator3D {

tessellator { }
tessellator3D { s 0.99 b -0.01 z -1 }

}

rule foursome {

tessellator3D { h  0 x -85 y  -15 r  90 }
tessellator3D { h 11 x  15 y  -85 r 270 }
tessellator3D { h 22                    }
tessellator3D { h 33 x -70 y -100 r 180 }

}

rule sixteensome {

foursome { h   0               }
foursome { h  22 x  200        }
foursome { h  44 x  200 y -200 }
foursome { h  66        y -200 }

}

rule begin { sixteensome { h 180 sat 0.5 b 1 } }