How would I go about coloring the top and bottom of a page in ConTeXt/Metafun?
Currently I am using this code
\definecolor [Top] [h=00ff00]
\definecolor [Bottom] [h=ff0000]
\definecolor [TitleColor] [h=0000ff]
\setupmakeup [CoverPage] [pagestart=yes]
\definehighlight [CoverTitle] [color=TitleColor]
\startuseMPgraphic{Head}
StartPage ;
fill Page withcolor \MPcolor{Top} ;
StopPage ;
\stopuseMPgraphic
\defineoverlay[page][\useMPgraphic{Head}]
\setupbackgrounds[page][background=page]
\starttext
\startmakeup[CoverPage][doublesided=no]
\definedfont[Serif at 20.7pt]\setstrut \strut Author \par
\definedfont[Serif at 32.7pt]\setstrut \strut \TitleColor{Cover Page Title} \par
% I would like to separate the top and bottom colors here.
\definedfont[Serif at 24.9pt]\setstrut \strut \TitleColor{Subhead Title}
\stopmakeup
\stoptext
Which obviously returns a page with a single color.
I am learning ConTeXt/Metafun, so the above code is "cargo cult"-ish. If there is a better way I would like to know.
startmarkup
. Do you meanstartmakeup
? – sztruks Jan 30 '19 at 20:21\setupcolors [state=start]
. Colors are enabled by default in ConTeXt MkIV. – Henri Menke Jan 30 '19 at 21:24