Hi all
Whenever I draw a solid shape of one color, wherever it has an edge meeting up with a different color, it will have a different color along the edge. Not the color of the shape, not the color that is outside the shape, but a mix, maybe?
Here’s a demo for what I’m talking about.
I thought initially that the problem was only for non-vertical and non-horizontal edges, but it seems that all edges are affected.
Initially, you’ll note the diagonal lines in adjoining triangles. These are the most obvious “undesired” lines, and can be made better (but not fixed entirely) by adding a stroke value. I think the issue here is that there is a tiny gap between the triangles that shows the background. This is odd enough in and of itself, since the triangles share coordinates.
However, even along the horizontal and vertical lines, we have odd blending going on. Here is a zoomed screenshot to show what I mean:
(I would show more, but I’m a new user and not allowed )
The above image is from when I zoom in the browser. If I save the image to png (using built-in browser capabilities), the horizontal and vertical bleeds seem to disappear, but the diagonal remain.
Does anyone know details of why these artifacts appear, and if they’re avoidable? I also tried using noSmooth(), and it made no difference.