Draw a HilbertPeano Curve with Slashes
Given a positive integer N, draw the Nth iteration of the Hilbert CurvePeano Curve, using only slashes and backslashes (and spaces). The curve will be rotated at a 45 degree angle from its usual depiction. Here's an example for the first 43 iterations:
/\
/ /
/ /
\/
/\
/ /
/ / /\
/ \/ /
/ /\ / /\
\/ / \/ /
/\ / /\ / /\
/ / / / / / / /
/ / / / / / / /
\/ / \/ / \/
/ /\ / /\
\/ / \/ /
/ /\ /
\/ / /
/ /
\/
/\
/\ /
/ / / /\
\ /\ \ \/ /
/\ / / /
\ / /\
\/ / \/\ /
\ \ /\ / /\ / /\
\ / / / / / / /\ /
/\ / / / \/ / / / /\
\ \ /\ \/
/ \/\ / \/ /
/ /\/
/ /\ / /\ / /\
\/
N = 4
\/ / \/ / \/ / \/ /
/\ / /\ / /\ / /\ / /\
/\ / / / / \/ / / / / / / /
/ / / / / /\ / / / / / / / /\
/ \/ / \/ / \/ / \/ / \/ /
/ /\ / /\ / /\ / /\ / /\ / /\
\/ / \/ / \/ / \/ / \/ /
\/ /
/\ / /\ / /\ / /\ / /\ / /\ / /\
/ / \/ / / / / / / / \/ / / / / / / /
/ / /\ / / / / / / / /\ / / / / / / / /\
/ \/ / \/ / \/ / \/ / \/ / \/ / \/ /
/ /\ / /\ / /\ / /\ / /\ / /\ / /\ / /\
\/ / \/ / \/ / \/ / \/ / \/ / \/ / \/ /
/\ / /\ / /\ / /\
/ /\ / /\ / /\ / /\ / /\
/ / / / / / / / / / / / / / / / / / / / / / / / / /
/ / / / / / / / / / / / / / / / / / / / / / / / / /
\/ / \/ / \/ / \/ / \/ / \/ / \/ / \/ / \/
/ /\ / /\ \ \/ \/\ / /\ / /\ / /\ / /\ / /\
\/ / \/ / \/ / \/ / \/ / \/ / \/ / \/ /
/ /\ / /\ / /\ / /\ / /\ / /\ / /\ /
\/ / / / / / / / \/ / / / / / / / \/ / /
\ / / / / / / / /\ / / / / / / / /\ / /
\/ / \/ / \/ / \/ / \/ / \/ / \/
/ /\ / /\ / /\ / /\ \ / /\ / /\
\ \/ / \/\ / \/ / \/ / \/ / \/ /
/ /\ / /\ / /\ / /\ / /\ /
\/ / / / / / / / \/ / / / / /
/ / / / / / / /\ / / / / /
\/ / \/ / \/ / \/ / \/
\ \ / /\ / /\ / /\ / /\
\/ / \/ / \/ / \/ /
/ /\ / /\ \/ /\ /
\/ / / / / / / / /
/ / / / / / / /
\/ / \/ / \/
\ / /\ / /\
\/ / \/ /
/ /\ /
\/ / /
/ /
\/