Mihel Ruffieux on  wrote...
| Mihel Ruffieux <[EMAIL PROTECTED]> sent the following
| comment to "anthony", about "Spiral line".
| You are reading it:-
| ------------------------------------------------------------
| Hello,
| 
| I try to create a spiral line. Wha't the best method ?
| 
You can do the math and draw that line.

For example...
  convert -size 80x80 xc:lightblue -fill none -stroke black \
            -draw "path 'M 40,40   C 43,43 47,47 50,40 \
                    S 52,23 40,20   S 14,22 10,40   S 15,75 40,79'" \
            spiral.gif

This was a variation of an IM example used for Radial Blur
   http://imagemagick.org/Usage/convolve/#radial-blur
The colors were changed, and the final closure of the path 'Z' removed.

The more points the better!  The numbers can be floating point values.


The other way is to distort a image of a line. though their are limits
in that you can only go around the center once.

  convert -size 360x80 xc:lightblue \
          -draw "fill none stroke black line 0,5 360,90" \
          -distort arc '360 0 80 0'  distorted_line.gif

This is a perfect spiral, and even the thickness and density of the line
is distorted as it gets closer to the center.

I have added this to the 'Arc' distort examples in IM Examples
   http://imagemagick.org/Usage/distorts/#arc

All the options above are in IM examples. Quickest way to look up
information is to use the "Reference" page on the image operators,
to find both the offical (minimal) documentation, and Examples and
Discussion of the operator.
   http://imagemagick.org/Usage/reference.html

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
                      i souport publik edekasion
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to