I'm new to gimp and need to create many diagrams in gimp. I would like a quick way to draw a line that looks like a hose/pipe between pieces of equipment. It doesn't have to be perfect but quick to do and recognizable as a pipe/hose. The method I used to draw this was in QGIS, but it is very time consuming and memory intensive.

Example below:

enter image description here


1 Answer 1


You can use paths:

enter image description here

and just do Edit > Stroke path in Line mode

enter image description here

For a slightly more realistic look, you can use a brush.

Create an image with

  • A crescent on transparent background (about the size of your wider pipes or larger, here 50x50px)
  • Filled with a bi-linear gradient between a color and a slightly darker version of that color
  • You can make a circle selection, fill it, and then delete a half circle, or make a crescent selection (select circle and then subtract half-circle)

enter image description here

  • Then copy the image to the clipboard (Select > All, Edit > Copy), open the paint tool and set these options:

    • Brush: Clipboard image
    • Size: as required
    • Spacing: something small (1,2...)
    • Brush dynamics: Track direction

enter image description here

Then use Edit > Stroke path in Paint tool mode and select the Paintbrush and Emulate paint dynamics.

enter image description here

You can save your brush image as a plain Gimp brush for later use if interested, and it will be added to the brushes list.

For the record there is also a script that can draw a bilinear gradient along a path a gives a cleaner result:

enter image description here

Ask in comments if interested.

To use the plugin:

  1. Create a path...
  2. Set the current gradient to something light to dark, for instance, I created the gradient ❶ using the FG to BG (RGB) gradient, and then setting the FG ❷ and BG colors ❸.

enter image description here

  1. Call the script form the Paths list, right click you path and Decorate > Gradient long path towards the bottom

enter image description here

Then mostly set the width in the dialog:

enter image description here

  • I downloaded the bi-gradient plugin, but clueless on how you got to the look in your last image.
    – MJM
    Dec 5, 2022 at 23:01
  • 1
    See augmented answer. See installation instructions at the bottom of the download page.
    – xenoid
    Dec 5, 2022 at 23:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.