Two rectangles with the same size

Post questions on how to use or achieve an effect in Inkscape.
rubins
Posts: 10
Joined: Mon Jul 18, 2011 7:01 pm

Two rectangles with the same size

Postby rubins » Wed Aug 24, 2011 1:10 am

Hello everybody, When I draw a rectangle, color red and no border, and I duplicate it, color yellow and no border, and put the yellow on top of the red one, I can see the red one on all bordersides. So the yellow one is not covering the red one as I would expect. What could be the problem and is there a solution for it. Thanks for your help. Rubins

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: Two rectangles with the same size

Postby flamingolady » Wed Aug 24, 2011 1:49 am

When I do the steps, it keeps the same size, it's just that Inkscape slightly changes the yellow border to allow me to see the retangle below, so I know it's there. If you look again, is your border acutally moving or could it be that you are seeing through the yellow, and maybe it's an optical illusion?

PatJr
Posts: 81
Joined: Fri Jul 29, 2011 5:35 am

Re: Two rectangles with the same size

Postby PatJr » Wed Aug 24, 2011 10:18 am

dunno,
I see what you mean though

not to be flip as my gf says, why is this a problem? what are you using as the output, png, pdf, ps, svg ? I didn't try it so does the shadowy color show up in what you are trying to use the graphic for?

I guess you could put a hairline around the box on top to hide the shadow?

seems to me like it's some kind of anti-aliasing thing and might not show up on all monitors and systems?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Two rectangles with the same size

Postby brynn » Wed Aug 24, 2011 2:22 pm

This is a known "issue" with Inkscape's rendering "engine". There is nothing you can do about it, beside making the top object slightly bigger. Or there may be another solution, depending on your image and your goals. If making the top one bigger won't work, let us know why and what is your goal. Maybe even show us a screenshot.

(This was the subject of one of my very first messages here, lol. I'll try to find it, and make a link, because I think it contains a more technical description. But soooo long ago.....!)

EDIT
I didn't think I would find it, but I did. But rather than creating a link, the explanation is easy enough. Inkscape automatically anti-aliases the shapes. That creates a very, very, tiny, thin strip around the edge, that's partly transparent, allowing you to see a darker color below. (anti-aliasing helps create those smooth, clean, crisp lines) Nothing can be done about it, but we can find workarounds, depending on your image and your goals :D


Return to “Help with using Inkscape”