Fred's ImageMagick Scripts
|
Creates a gradient effect at a specific orientation angle. |
last modified: February 04, 2010
|
USAGE: anglegradient widthxheight [-a angle] [-c color ] outfile
widthxheight ................... widthxheight of gradient image PURPOSE: To create a gradient effect at a specific orientation angle. DESCRIPTION: ANGLEGRADIENT creates a gradient effect at a specific orientation angle. ARGUMENTS: widthxheight ... WIDTHxHEIGHT are the dimensions of the gradient image. -a angle ... ANGLE is the angle for the gradient coloration in degrees. Values must be greater than or equal to 0 and less than or equal to 360. Alternately, values of nw, ne, se, or sw may be specified to have the diagonal angle automatically, computed. For angle=0, the gradient will have the first color at the top and the second color at the bottom. As the gradient-angle is increased, the gradient rotates clockwise. The default=0. -c colors ... COLORS is any valid hyphenated IM color pair including opaquecolor-opaquecolor, opaquecolor-none or none-opaquecolor for a transition from one opaque color to another or to transparency. If no color pair is specified, then the normal grayscale gradient will be generated. For angle=0, the first color will be at the top and the second color at the bottom of the gradient image. NOTE: This script requires IM 6.4.2-6 or higher due to the use of -distort SRT. CAVEAT: No guarantee that this script will work on all platforms, nor that trapping of inconsistent parameters is complete and foolproof. Use At Your Own Risk. |
|
Angle Gradient |
|||
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
|
Arguments: |
Arguments: |
||
|
|
||
|
What the script does is as follows:
This is equivalent to the following IM commands for red-blue gradient
|