5 Feb
2010
5 Feb
'10
7:31 a.m.
Am 04.02.10 21:41, schrieb Philipp Gesang:
Hi all,
I understand that in order to use a color with \color[somecolor]{colored text} I first have to \definecolor[somecolor][r=.4,g=0,b=1]. Currently I'm trying to do automated colorizing with the help of some lua code and I'd like to make up rgb vectors on the spot without having to \definecolor them first, e.g. something like \color[r=.4,g=0,b=1] {colored text}. Is there a way to achieve this in mkiv? (Right now I'm assigning new rgb values to the same color "name" whenever the function is called that concatenates the next \color[]{} statement. This seems a bit verbose and hacky to me.)
\colored[r=...,g=...,b=...]{...} or {\colored[r=...,g=...,b=...]...} Wolfgang