How do I make an inner rounded rectangle and an outer rounded rectangle be parallel around the corners?

39 Views Asked by At

The outer radius does not follow the inner radius. I am currently using x = width/4 + radius + outset, y = height/4 + radius + outset. I think the outset needs to be some ratio of the hypotenuse.Please view my image on the link.

rounded rectangle link

1

There are 1 best solutions below

1
On BEST ANSWER

Make the centers of the quarter-circles the same. This means that the radii must differ by the distance between the rectangles and the distances between the horizontal and vertical sides must be the same.