![](https://secure.gravatar.com/avatar/fd43e439fba554d050621d705fc2d8cb.jpg?s=120&d=mm&r=g)
14 May
2012
14 May
'12
9:53 a.m.
Hi, I am trying to pass a tex color as a paramter to a module. I used the example from the wiki as a base. But as soon I hand over a color directly it does not work. Any help is welcome as I am looking forward to hand in my first module. Are there any rules how and where to hand in a module for context? Thanks P. --8<---Modul: bgcolor.tex--------------- \startmodule[bgcolor] \unprotect \definecolor[grau][s=.35] \setupmodule[color=grau] \setupbackgrounds[page][background=color,backgroundcolor=\currentmoduleparameter{color}] \protect \stopmodule \endinput --8<--tex file itself--------- \setupcolors[state=start] \definecolor[bordeaux][r=.66] \usemodule[bgcolor][color=bordeaux] \starttext Hello world! \stoptext