GRADIENT ARCS

These scripts work at Arbor IM. Do not work at Zbox. Not sure of other servers. I've provided a form for public use, for people who would like to use it. This is a script for making arcs using gradients and PHP with Image Magick from the command line.
This tute goes step by step through the process to get some very interesting results for making gradient arcs and then circles with the arcs.
CODESEXAMPLES
First make some gradients.
exec ("/usr/bin/convert -size 50x50 gradient:white-maroon -distort SRT 90 sample/Tube1.gif");
exec ("/usr/bin/convert -size 50x50 gradient:white-maroon -distort SRT -90 sample/Tube2.gif");
exec ("/usr/bin/convert -size 50x20 gradient:magenta-lawngreen -distort SRT 140 sample/frill1.gif");
exec ("/usr/bin/convert -size 50x20 gradient:magenta-lawngreen -distort SRT -140 sample/frill2.gif");
MAKE MONTAGE OF GRADIENTS FOR TUBES
exec ("/usr/bin/montage sample/Tube1.gif sample/Tube2.gif -tile 2x1 -geometry +0+0 sample/block.gif");
exec ("/usr/bin/montage sample/frill2.gif sample/frill1.gif -tile 2x1 -geometry +0+0 sample/frill.gif");
CROP OFF EXCESS BACK IN THE TUBES
exec ("/usr/bin/convert sample/block.gif -crop 100x50+25+0 -crop 100x50-25-0 sample/CropBl.gif");
exec ("/usr/bin/convert sample/frill.gif -crop 100x20+25+0 -crop 100x20-25-0 sample/fri.gif");
MAKE MONTAGE OF CROPPED TUBES
exec ("/usr/bin/montage sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/CropBl.gif sample/CropBl.gif sample/CropBl.gif sample/CropBl.gif sample/CropBl.gif sample/CropBl.gif sample/CropBl.gif sample/CropBl.gif sample/CropBl.gif sample/CropBl.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif sample/fri.gif -background transparent -tile 10x3 -geometry +0+0 sample/GradMont.gif");

RESIZE THE MONTAGE
exec ("/usr/bin/convert sample/GradMont.gif -resize 200x100! sample/GradMontRz.gif");
MAKE AN ARC OF THE TUBE MONTAGE
exec ("/usr/bin/convert sample/GradMontRz.gif -virtual-pixel black -distort arc 180 sample/skirtB.gif");
MAKE BACKGROUND TRANSPARENT
exec ("/usr/bin/convert sample/skirtB.gif -fuzz 3000 -matte -fill none -draw 'color 10,10 replace' sample/top.gif");
CROP OFF 2 PIXEL BLACK CREATED BY THE ARC COMMAND
exec ("/usr/bin/convert sample/top.gif -crop +0-2 sample/toparc.gif");
FLIP FLOP THE ARC
exec("/usr/bin/convert -flip -flop sample/toparc.gif sample/botarc.gif");
MONTAGE TOP AND BOTTOM TOGETHER
exec("/usr/bin/montage sample/toparc.gif sample/botarc.gif -background transparent -tile 1x2 -geometry +0+0 sample/ArcCirc.gif");
You can also make the arc 360 degrees instead of two arcs of 180 degrees put together to form a circle. The effect is different. For example, this arc
Becomes:


Page 2 Virtual pixel backgrounds

SAMPLE ARCS

ARC TOOL

Below are a zip of a sample gradient arc script plus a gradient arc form. You must create a directory called Temp as all the images of the script will be output to the Temp directory. There is also a text version of the scripts if you prefer that to the zip. You can change the size of the gradients, but the widths must remain the same for all gradients.

GradArc ZIP (script and form)

GradArc Script text

GradArc Form text