[pstricks] pstricks and \ColoredOverlappedSurfaces
Hendri Adriaens
Hendri at uvt.nl
Fri Feb 25 13:01:24 CET 2005
> 2) xcolor can mix colors from different models
> and it has a very simple interface. I modified
> the Mixed-Colors.tex (see Mixed-ColorsHA.tex
> attached) to the current state of techniques.
> The example has become very simple since all the
> decoding and mixing macros have gone. See the
> first example to check that even mixing green
> and gray works.
The mixing result was incorrect compared to the
result of the modified code of Denis posted here
earlier. I repaired it. The macro below reproduces
the resulting colors exactly and allows for mixing
gray with green.
-Hendri.
\def\ColoredOverlappedSurfaces#1#2#3#4{%
\psset{fillstyle=solid,fillcolor=#2}#1%
\psclip{\psset{fillcolor=#4}#3}%
\psset{fillcolor={rgb,2:#2,-1;#4,-1}}#1%
\endpsclip
}
More information about the PSTricks
mailing list