Fred's ImageMagick Scripts
|
Draws a cone-shaped object on an image. |
last modified: May 28, 2010
|
USAGE: cone [-s size] [-r radii] [-c center] [-a apex] [-e ecolors] [-t tcolors] [-b bcolor] [-m mode] [infile] outfile
-s .... size ....... size of background image to create if no input image PURPOSE: To draw a cone-shaped object on an image. DESCRIPTION: CONE draws a cone-shaped object on an image. The cone is composed of two parts an ellipse (or circle) and a triangle. One can specify different colors for each along with stroke colors and strokewidths. ARGUMENTS: -s size ... SIZE of background image to create if no input image is provided. The size=WIDTHxHEIGHT; If only one value is provided, the second will be set equal to the first. Default="300x300". -r radii ... RADII are the x,y radii for the ellipse. Radii are specified as a comma separated list of two positive integers. If only one value is provided, the second will be set equal to the first. The default="50,50" (i.e., circle of radius=50). -c center ... CENTER coordinates for the ellipse part of the cone. Center is a comma separate list of two non-negative integers. If only one value is provided, the second will be set equal to the first. The default="150,100". -a apex ... APEX coordinates for the triangle tip of the cone. Apex is a comma separate list of two non-negative integers. If only one value is provided, the second will be set equal to the first. The default="150,250". -e ecolors ... ECOLORS is a comma separate list of thre values, namely, the ellipse fill and stroke colors and strokewidth. All 3 values must be provided. The default="white,black,1"; -t tcolors ... TCOLORS is a comma separate list of thre values, namely, the triangle fill and stroke colors and strokewidth. All 3 values must be provided. The default="tan,black,1"; -b bcolor ... BCOLOR is the background color for image if no input image is provided. The default="lightblue". -m mode ... MODE of drawing order. The choices are 1 or 2. A value of 1 draws the triangle over the ellipse. A value of 2 draws the ellipse over the triangle. The default=1. 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. |
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
Arguments: |
Arguments: |
|
|
|
What the script does is as follows:
This is equivalent to the following IM commands for mode=1:
|