Go forwards the length of one side.

Spin left through the correct angle for the corner of your shape

Use a for loop to repeat all the above the right number of times for your shape.

Use the hide button to see more of the screen.
The white rectangle is the size of an A4 sheet.