% content=tex
%
% copyright=pragma-ade readme=readme.pdf licence=cc-by-nc-sa

\usemodule[visual]
\usemodule[simulate]

\dontcomplain

\startenvironment columnsets-000

\useMPlibrary[dum]

\setupbodyfont
  [palatino]

\setuplayout
  [grid=yes]

\setuplayout
  [backspace=20mm,
   cutspace=15mm,
   width=middle,
   height=middle]

\setupsystem
  [random=1234]

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupheadertexts
  [pagenumber][right]
  [left][pagenumber]

\setupfootertexts
  [\inputfilename]

\setupfooter
  [style=\tttf]

\setupheader
  [style=\tttf]

\setuptolerance
  [verytolerant,stretch]

\definecolor[color-1][.5(red,green)]
\definecolor[color-2][.5(green,blue)]
\definecolor[color-3][.5(blue,red)]
\definecolor[color-4][.5(white,black)]
\definecolor[color-5][.5(white,color-4)]

\startuniqueMPgraphic{frame}
  fill OverlayBox withcolor \MPcolor{color-1} ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{contrast}
  fill OverlayBox withcolor \MPcolor{color-3} ;
\stopuniqueMPgraphic

\defineoverlay[frame]   [\uniqueMPgraphic{frame}]
\defineoverlay[contrast][\uniqueMPgraphic{contrast}]

\stopenvironment
