I am trying to make a tessellation using a grid of rectangles, snapped together, although the tessellation itself is composed of white and yellow triangles rather than rectangles. Each triangle spans across two rectangles. The problem I am having is that, if there is a dark background, where the two rectangles join, a dark line is visible, even though the two rectangles have been snapped together and therefore there should be nothing in between them. Sometimes the line disappears when I zoom right in, but appears when I zoom out. The behaviour is a bit inconsistent.
I've tried resizing the rectangles to whole numbers of pixels. I've tried increasing the resolution of the design in AF Photo. Nothing seems to work.
How can I get rid of these lines/gaps?