Color gradient along a line
#1
Posted 13 August 2012 - 11:05 PM
I have a foreground and background color selected. I want to draw a line with a gradient between the two colors. All I get is a line in the foreground color.
The help talks about a checkbox "use color from gradient" but I don't have that on my tool options. I can see the sample gradient displayed there though.
What am I missing?
TIA
R
#2
Posted 13 August 2012 - 11:41 PM
#3
Posted 14 August 2012 - 12:08 AM
Solartide, on 13 August 2012 - 11:41 PM, said:
According to the help, any tool can use a gradient:
Painting with a gradient
Each of GIMP's basic painting tools allows you the option of using colors from a gradient. This enables you to create brushstrokes that change color from one end to the other.
My problem is that the tool options dialog doesn't include the checkbox to enable the gradient. Here's the help at http://docs.gimp.org...-gradients.html:
and here's my one:
#4
Posted 14 August 2012 - 12:08 AM
RrR, on 13 August 2012 - 11:05 PM, said:
I have a foreground and background color selected. I want to draw a line with a gradient between the two colors. All I get is a line in the foreground color.
The help talks about a checkbox "use color from gradient" but I don't have that on my tool options. I can see the sample gradient displayed there though.
What am I missing?
TIA
R
#5
Posted 14 August 2012 - 03:36 AM
- I created a new paint dynamic called "Color gradient along line".
- In the Editor, I checked the Fade / Color cell
- In the tool options, I select the pencil
- I set the fade length to 100, units to % (I presume that means apply it over 100 of the length of the line)
- I set the FG and BG colors I want
- I click at the point where I want the line to start
- I shift-click at the end point.
It works - sort of. I can't make any sense of the distance over which the transition from the FG to the BG color occurs however. I want the first pixel of the line to be the FG color, and the last pixel to be the BG color and all intermediate pixels of the line to be a linear gradient between the two colors, regardless of the length of the line.
How do I do that?
#6
Posted 14 August 2012 - 04:02 AM
#8
Posted 14 August 2012 - 07:22 AM
RrR, on 14 August 2012 - 04:43 AM, said:
#9
Posted 14 August 2012 - 07:39 AM
RrR, on 14 August 2012 - 03:36 AM, said:
- I created a new paint dynamic called "Color gradient along line".
- In the Editor, I checked the Fade / Color cell
- In the tool options, I select the pencil
- I set the fade length to 100, units to % (I presume that means apply it over 100 of the length of the line)
- I set the FG and BG colors I want
- I click at the point where I want the line to start
- I shift-click at the end point.
It works - sort of. I can't make any sense of the distance over which the transition from the FG to the BG color occurs however. I want the first pixel of the line to be the FG color, and the last pixel to be the BG color and all intermediate pixels of the line to be a linear gradient between the two colors, regardless of the length of the line.
How do I do that?
Slightly painful method:
- use the Measure tool to find the distance between your two points
- set the fade length in the paintbrush Tool options to this distance
- draw the line
#10
Posted 14 August 2012 - 09:21 AM
Quote
Ahah! Makes sense.
Thanks

Help













