Magmic interview question

Give pseudo-code to create a rectangle centered in the Applet