Dropouts at certain angles when rotating a path
Posted: 2012-09-06T06:07:36-07:00
I try to draw a hexagon with ImageMagick. This is done by a DOS batch file which generates the command and shall do this not only for hexagons, but also for regular polygons with abitrary corner point count (in the future). I dumped the output of my batch into a textfile:
This Convert command does however leave out the lines with 120° and 300°rotation. What's going wrong over here? (Besides the fact that this "hexagon" is far from perfect ...)
Code: Select all
Convert -size 2592x1994 xc:white -strokewidth 10 -stroke black -draw "translate 1000,900 rotate 0 Path 'M 600,0 600,200' rotate 60 Path 'M 600,0 600,200' rotate 120 Path 'M 600,0 600,200' rotate 180 Path 'M 600,0 600,200' rotate 240 Path 'M 600,0 600,200' rotate 300 Path 'M 600,0 600,200' rotate 360 Path 'M 600,0 600,200'" Test.png