How to Draw a Straight Line in GIMP
This article provides a quick overview and step-by-step guide on how to draw perfectly straight lines in GIMP using the Brush tool. You will learn the essential keyboard shortcuts, brush settings, and alternative path tools required to create precise geometric lines in your digital artwork.
The Shift Key Method
The quickest and most common way to draw a straight line in GIMP is by using a simple keyboard modifier. This method works with the Paintbrush, Pencil, Airbrush, and Eraser tools.
- Select your tool: Click on the Paintbrush tool (or
press
Pon your keyboard). - Place the starting point: Click once on your canvas where you want the line to begin.
- Connect the line: Hold down the
Shiftkey. As you move your mouse, a thin guide line will appear, showing you where the line will be drawn. - Click to finish: While still holding
Shift, click a second time at your desired endpoint. GIMP will instantly connect the two points with a straight line.
Constraining Angles for Perfect Horizontals and Verticals
If you need your line to be perfectly horizontal, vertical, or at a precise 15-degree increment, you can add one more key to the process.
- Follow the same steps as above: click your starting point and hold
down
Shift. - Before clicking the endpoint, press and hold the
Ctrlkey (Cmdon Mac) as well. - Moving your mouse will now snap the line guide to increments of 15 degrees, making it incredibly easy to snap a perfect 90-degree vertical or 0-degree horizontal line.
Using the Paths Tool for Complex Lines
For more advanced layouts where you need to adjust the line before committing pixels to the canvas, the Paths tool is the best alternative.
- Select the Paths Tool from the toolbox (or press
B). - Click on the canvas to create your start point, and click elsewhere to create the endpoint. This creates a vector path.
- In the Tool Options menu on the left, click the Stroke Path button.
- A dialog box will appear. Select Stroke line, choose your line width and style, and click Stroke. GIMP will paint a perfectly straight line along the path you created.