
O seguinte MWE ilustra o problema: entre as áreas de preenchimento conectadas há um pequeno espaço, onde o fundo será exibido (veja a imagem ampliada com as marcas vermelhas)
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\pagecolor{green}
\begin{tikzpicture}[node distance=1mm and 6mm]
\node (b1) [text width=10mm, text height=10mm,fill=white]{};
\node (b2) [text width=10mm, text height=10mm,fill=black,right=of b1]{};
\fill[black] (b1.north east) -- (b2.north west) -- (b2.south west) -- (b1.south east) -- cycle;
\end{tikzpicture}
\end{document}
O que posso fazer para evitar a imagem de fundo entre as áreas preenchidas?
Responder1
Você tem que outer sep
igualar a zero.
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\pagecolor{green}
\begin{tikzpicture}[node distance=1mm and 6mm]
\node (b1) [text width=10mm, text height=10mm,fill=white,outer sep=0pt]{};
\node (b2) [text width=10mm, text height=10mm,fill=black,right=of b1,outer sep=0pt]{};
\fill[black] (b1.north east) -- (b2.north west) -- (b2.south west) -- (b1.south east) -- cycle;
\end{tikzpicture}
\end{document}