I have the following code:
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{scopes,patterns,intersections,calc}
\begin{document}
\begin{tikzpicture}[thick]
\path (-2,0) coordinate (t1) (2,0) coordinate (t2);
\path (0,-2) coordinate (s1) (0,2) coordinate (s2);
{ [color=blue!50!red!50,pattern color=blue!50!red!50]
\draw (s1) -- (s2);
\path [pattern=north west lines] (s1) +(-0.2,0) rectangle (s2);
}
{ [color=magenta,pattern color=magenta]
\draw (t1) -- (t2);
\path [pattern=north east lines] (t1) +(0,-0.2) rectangle (t2);
}
\end{tikzpicture}
\end{document}
As in the first (vertical) scope I would expect that the pattern has the same color as the line in both scopes. For me, I get three different colors; the pattern and the main line of the horizontal scope differ quite much (looks nearly midway between colors of hor. and vert. scope).
I am using pdfLaTeX to compile the file. Different viewers don't change anything.
Can you explain me this behavior?
xcolor
with thesvgnames
package and using the colours defined by that, whenceMagenta
instead ofmagenta
.