[magick-users] Arrow heads

damien dunlop djd at cmad.com.au
Fri Aug 21 22:46:06 PDT 2009


# The following creates an arrow head with a tail.
# Benefits: looks OK, can be easily located by adjusting
# the coordinates of -region, can be easily rotated, can be
# easily scaled, tail attached to head.
# Disadvantage: To change the length of the tail, a value
# has to be changed in three places (-region, twice in polyline)


convert A.gif -region 82x200+50+50  \
        -draw 'polyline 0,100 82,100 41,0'  \
        -draw 'polyline 39,100 39,200 43,200 43,100' \
        -rotate -30 -scale 200x200 B.gif

# Are there better ways?


Damien




More information about the Magick-users mailing list