I am making a dashed line in Gimp by making a new layer, drawing a path, clicking "Stroke Path" in the tool options, and then selecting the dashed line style in the Stroke Path window.

enter image description here

My foreground color is black. I would expect this line to also be black. Instead it's filling with a brown gradient, similar to a gradient that I used for the bottom rectangle in this image.

enter image description here

enter image description here

Why is this happening?


1 Answer 1


There are two possibilities I can think of that might be to blame, although there may be more.

  1. Check the colour mode by clicking Image > Mode. Sounds like you might be in Indexed colour mode. It should be in RGB colour.

  2. You have Stroke Line set to "Pattern". Change it to "Solid color" instead.

  • #2 was the solution. Changing it to "solid color" solved it. Thank you!
    – ale19
    May 13, 2019 at 18:56

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.