\input mftmac
$\9 {\bf Truchet's problem: examples}\par
$\9==================================================\par
$\9 D. Roegel's solution for Denis Girou's {\tt pstricks} competition.\par
$\9 This solution is written in {\tt METAPOST}.\par
$\9 The source file may be formatted using the {\tt mft} program.\par
$\9 (the program used for volumes B and E of {\it Computers \& Typesetting\/})%
\par
$\9 Send comments and improvements to {\tt roegel@loria.fr}.\par
$\9 -------------------------------------------------------------------------%
\par
$\9 Here are several examples. Each $\\{beginfig}$ $\\{endfig}$ environment\par
$\9 produces one PostScript file.\par
$\9\par
$\9 We load the tiling macros.\par
$\2{input}\hbox{\tt tiling}$\par
\BL
$\2{randomseed}:=23;\ \9 this is useful when you want to have always the same
tilings.\par
\BL
$\\{beginfig}(1);$\par
$\\{TilingLineWidth}:=1\\{mm};$\par
$\\{TruchetTiling}(3,4);$\par
$\\{endfig};$\par
\BL
$\\{beginfig}(2);$\par
$\\{TilingUnit}:=2\\{cm};$\par
$\\{TruchetTilingFill}:=\5{true};$\par
$\\{TileColors}(\\{red},\\{blue});$\par
$\\{TruchetTiling}(5,3);$\par
$\\{endfig};$\par
\BL
$\\{beginfig}(3);$\par
$\\{TilingUnit}:=2\\{cm};$\par
$\\{TruchetTilingFill}:=\5{true};$\par
$\\{TileColors}((1,1,1),(0,0,0));$\par
$\\{TruchetTiling}(2,3);$\par
$\\{endfig};$\par
\BL
$\\{beginfig}(4);$\par
$\\{TilingUnit}:=1\\{cm};$\par
$\\{TruchetTilingFill}:=\5{true};$\par
$\\{TileColors}((0.5,0,1),(0,1,0));$\par
$\\{TruchetTiling}(4,4);$\par
$\\{endfig};$\par
\BL
$\\{beginfig}(5);$\par
$\\{TilingUnit}:=1\\{cm};$\par
$\\{TruchetTilingFill}:=\5{true};$\par
$\\{TruchetTiling}(10,10);$\par
$\\{endfig};$\par
\BL
$\!\3{end}$\par
