Possible Duplicate:
TikZ borders showing through when they shouldn't (overlapping circles)
Using absolute positioning I can make a nice filled grid:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\newcommand{\backgroundfill}[5]{
\begin{tikzpicture}[remember picture, overlay]
\node (rect) at (current page.north west)
[shift={(#3/2 + #1, -#4/2 - #2)},
minimum width =#3,
minimum height=#4,
fill=#5] {};
\end{tikzpicture}
}
\thispagestyle{empty}
\begin{document}
\newlength{\LX}
\setlength{\LX}{.5\paperwidth}
\backgroundfill{0cm}{0cm}{\LX}{\LX}{black}
\backgroundfill{\LX}{0cm}{\LX}{\LX}{blue}
\backgroundfill{0cm}{\LX}{\LX}{\LX}{blue}
\backgroundfill{\LX}{\LX}{\LX}{\LX}{black}
\end{document}

As I zoom into the image however, I sometimes notice the white background between rectangles. It's small but noticeable on the screen but for some reason does not show up on the uploaded PDF (the rasterized picture above). To convince myself that it was real, I took a screenshot and zoomed in on the border where the edge effect is clearly apparent.

Is there any way to avoid the whitespace between rectangles in TikZ?
evinceon a stock Ubuntu setup. I can't just put a solid background behind the rectangle since I like this to generalize to multiple (4) colors at each border. – Hooked Sep 19 '12 at 20:19gimp. The higher the pixels per inches (resolution) the smaller the effect, but it's still there. – Hooked Sep 19 '12 at 20:21