5. How to Draw Straight Lines

This tutorial is based on Text and images Copyright © 2002 Seth Burgess. The original tutorial can be found in the Internet [TUT01].

5.1. Intention

This tutorial shows you how to draw straight lines with GIMP. Forcing a line to be straight is a convenient way to deal with the imprecision of a mouse or tablet, and to take advantage of the power of a computer to make things look neat and orderly. This tutorial doesn't use Straight Lines for complex tasks; its intended to show how you can use it to create quick and easy straight lines.

  1. Create a New Image

    First, create a new image. Any size will do. Use FileNew… to create a new image.

  2. Choose a Tool

    Figure 3.34. Paint tools in the toolbox

    Paint tools in the toolbox

    Select a paint tool from the Toolbox, for example the Pencil tool or the Paintbrush tool.

  3. Create a Starting Point

    Figure 3.35. Starting point

    Starting point

    Left-click in the image where you want a line to start or end. A single dot will appear on the screen. The size of this dot represents the current brush size, which you can change in the Brush Dialog (see Section 3.2, “Brushes Dialog”). Now hold down the Shift key on your keyboard, and keep it down.

  4. Draw the Line

    Figure 3.36. Draw the line

    Draw the line

    After you have a starting point and while pressing the Shift key, you will see a straight line that follows the cursor. Press the first button on the mouse (the leftmost one usually) and let it go. During that whole click of the mouse button, you need to keep the Shift key held down.

  5. Final Result

    Figure 3.37. Final result

    Final result

    You can draw straight lines with any of the Paint tools. The last step is to let go of the Shift key. We are finished. Some examples are shown in the next section.