It is preferable to have done the preceding tutorials Draw a Circle and Draw an Ellipse before doing this tutorial.
- Open a new document.
- Enter Insert Line mode by clicking on the Insert Line button on the Drawing tool bar.
- While pressing the Shift key draw a horizontal line segment with a dragging motion of the mouse. Make sure the Shift key is depressed when releasing the mouse button. The drawing should have two point variables; one green (P_0) and one yellow (P_1), which is horizontally aligned with P_0. You can verify this by entering Default mode and selecting each of the point variables, but return to Insert line mode before continuing with the next step.
- Starting approximately vertically bellow P_1, press the Shift key while dragging a vertical line segment toward P_1. While the Shift key is depressed, release the mouse button when the cursor is over P_1, which is indicated by the cursor changing into cross-hairs. This should insert a new line segment and a new point variable P_2. Observe that P_1's marker turns red and is horizontally aligned with P_0 and vertically aligned with P_2. If you exit Insert Line mode, return to Insert Line mode before continuing with the next step.
- Starting at P_0, drag a vertical line segment. While the Shift key is depressed, release the mouse button when the cursor is approximately horizontally aligned with P_2. This should insert a new line segment and a new point variable P_4 (P_3 got snapped with P_1 in the previous step).
- Starting at P_2, drag a horizontal line segment toward P_4. While the Shift key is depressed, release the mouse button when the cursor is over P_4. Observe that P_4's marker turns red and is horizontally aligned with P_2 and vertically aligned with P_0.
- Enter Default mode and click on one of the line segments. This selects one of the polylines, which consists of two line segments. Press the Delete key to delete it.
- Enter Insert Line mode again. Starting at the point variable at one of the end points of the remaining polyline, complete the rectangle by drawing line segments to the next adjacent point variable. Enter Default mode and click on one of the line segments. Observe that the entire rectangle, consisting of 4 line segments is selected. Select one of the two free point variables (green markers) and drag it while observing that the polygon remains a rectangle.
- Save the drawing as rectangle_1.svg in the Basic Shapes folder.