How can I draw a rectangle with a 'double-border', which allows to specify a color for each of its 8 (4 inner, 4 outer) borders separately and does not widen the separating space between the outer and inner rectangle when scaled in a resizebox
?
(Sorry, I'm very new to TikZ.)
I tried the following, its shortcomings are: its 3 'rectangles' (inner border equals outer border) and its edges look 'not connected':
\begin{tikzpicture} \draw[red, double = black] (0,0) -- (1,0); \draw[green, double = purple] (1,0) -- (1,1); \draw[blue, double = brown] (1,1) -- (0,1); \draw[yellow, double = white] (0,1) -- (0,0);\end{tikzpicture}