Draw Perfectly Straight Lines in GIMP

Drawing perfectly straight geometric lines in GIMP is accomplished using the built-in Shift-click shortcut, which works across virtually all standard brush and painting tools. By placing an initial anchor point and holding down the Shift key, GIMP generates a dynamic guide line that connects to your cursor, allowing you to paint precise linear paths across multiple points on the canvas. This guide explains how to activate this technique, connect sequential points, and constrain angles for geometric precision.

The Shift-Click Technique

To draw a straight line using any painting tool (such as the Paintbrush, Pencil, Airbrush, or Eraser):

  1. Select your preferred painting tool from the Toolbox or press P for the Paintbrush.
  2. Configure your brush size, color, hardness, and opacity in the Tool Options panel.
  3. Click once on the canvas where you want the line to begin. This establishes the starting point.
  4. Move your cursor to the desired end location without clicking.
  5. Press and hold the Shift key. A straight preview line will appear, tethered between your starting point and the mouse cursor.
  6. Click the mouse to render the line onto the canvas.

Connecting Multiple Canvas Points

To construct geometric shapes, polygons, or continuous straight-line paths:

  1. Keep the Shift key held down after clicking the second point.
  2. Move the cursor to the next coordinate on your canvas. A new preview line will immediately extend from the previous end point to your current cursor position.
  3. Click again to render the next segment.
  4. Repeat this process for as many vertices or points as required to complete your geometric pattern.
  5. Release the Shift key once the final line segment is placed.

Constraining Line Angles

If your project requires exact horizontal, vertical, or specific angular alignment:

  1. Click to set your starting point.
  2. Press and hold both Shift + Ctrl simultaneously.
  3. Move the cursor. The guide line will now snap in fixed increments of 15 degrees (allowing for exact 0°, 15°, 30°, 45°, 60°, and 90° angles).
  4. Click to draw the constrained line, then release the keys.