tikz espacio no deseado entre nodos

tikz espacio no deseado entre nodos

El siguiente MWE ilustra el problema: entre las áreas de relleno conectadas hay un pequeño espacio, donde se mostrará el fondo (vea la imagen ampliada con las marcas rojas)

\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}

¿Qué puedo hacer para evitar la imagen de fondo entre las áreas rellenas?

ingrese la descripción de la imagen aquí

Respuesta1

Tienes que hacer outer sepigual a cero.

\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}

ingrese la descripción de la imagen aquí

información relacionada