In texture painting mode, the TexDraw brush has a functional "Use Gradient" checkbox (functionnal meaning it will actually let you chose a gradient, compared with the Smear brush for instance which does not). However, I can't seem to make it work in pressure mode: it only paints with the rightmost color. Repeat mode works by making selecting colors randomly within the gradient and clamp mode uses one color on clicking and the other on dragging (I have no idea why anyone would want to use it this way...)
Basically I would like to make it work with the stroke set to "Line", that is being able to draw a straight line whose color is that of the gradient. Can this be done? The only brush that seems to work with gradients is the Fill brush, but I just need to draw lines, not to fill an area.