How to position images using Polar coordination (in a circle
Posted: 2008-03-10T15:25:15-07:00
Dear ImageMagick Experts,
I was wondering if anyone could help me to be able to position an animated gif (dot) in a circle using Polar coordination so that I am able to use bearing (degrees) and distance to the edge as values to determ the position of the dot.
My current code is the folowing (PHP):
More information about the polar coordinate system:
http://en.wikipedia.org/wiki/Polar_coordinate_system
I was wondering if anyone could help me to be able to position an animated gif (dot) in a circle using Polar coordination so that I am able to use bearing (degrees) and distance to the edge as values to determ the position of the dot.
My current code is the folowing (PHP):
Code: Select all
exec("convert -size 38x38 ./images/compass_38.gif -font ./fonts/hotlink_watermark.ttf -pointsize 9 -draw \"text 26,32 '".$distance_limit."'\" -background '#F6F4F0' \( ./images/flashing_star_10.gif -repage 0x0+".$x."+".$y."\! \) -loop 0 -crop 34x30+4+4\! ./images/result.gif;");
http://en.wikipedia.org/wiki/Polar_coordinate_system