Page 1 of 1

Drawing a Variable Intensity (gradient) Line

Posted: 2012-07-01T16:46:30-07:00
by anthony
In topic viewtopic.php?f=1&t=21239
a line is needing to be drawn that has variable intensity.
That is very white at one point, and less white at the ends?

In that topic the line is vertical, but what if you don't want it vertical but going from specific floating point location to location?

Suggestions and solutions for a variable intensity (gradient) line?

Re: Drawing a Variable Intensity (gradient) Line

Posted: 2012-07-01T17:54:01-07:00
by fmw42
Create a gradient image whose diagonal is the length of the line, with the gradient along the line. Then create a mask image with a white line on a transparent background, then composite appropriately. see http://www.imagemagick.org/Usage/canvas ... _gradients