Snippets - Create
NOTE: Most of the IM snippets have been tested on IM version 6.3.5 There may be some differences if you are using the code on other versions.
Draw concentric circles - Anthony 14/6/2008
This code shows how to draw concentric circles.
<?php$cmd = "-size 200x200 xc:black -stroke black -strokewidth 1"." -fill white -draw \"circle 100,100 100,10 \" "." -fill black -draw \"circle 100,100 100,30 \" "." -fill blue -draw \"circle 100,100 100,50 \" "." -fill red -draw \"circle 100,100 100,70 \" "." -fill yellow -draw \"circle 100,100 100,90 \" "." -fill none -draw \"circle 100,100 100,20 \" "." -fill none -draw \"circle 100,100 100,60 \" "." -fill none -draw \"circle 100,100 100,80 \" "." -fill none -draw \"circle 100,100 100,95 \" "." -stroke white -fill none "." -draw \"circle 100,100 100,40 \" ";exec("convert $cmd output.png");?>

For more examples and information check out the main Imagemagick section.
Draw concentric circles ViewDraw polyline View
Draw rectangle View
Draw using ellipse View