# From: # www.contextfreeart.org/gallery2/#design/3907 startshape A (8) [s 1 8]

// Sub-dividing to make a nested pattern

shape A (natural n) {

if( n > 0)
{
  BIT [h 261.87 sat 0.4714 b 0.7459]

  B (n --1) [ x -1 y -0.25  s 1 0.5 ]
  B (n --1) [ x -1 y  0.25  s 1 0.5 ]
}

}

shape B (natural n) {

if( n > 0)
{
  BIT [h 267.46 sat 1.0000 b 0.6077]

  A (n --1) [ x -1 y -0.25  s 1 0.5 ]
  B (n --1) [ x -1 y  0.25  s 1 0.5 ]
}

}

shape BIT {

SQUARE [b -0.5 h 15]

SQUARE [s 0.9 0.99]

}