Introduction

The PostScript programming language is designed to describe the layout of graphics and text on the printed page. This website provides online utilities that show examples in actual practice.

2.21.2010

Polar Plotting :: Archimedean Spiral

postscript postscript_math-polar-archimedean-spiral

Example : Polar Plotting - Archimedean Spiral

polar-archimedean-spiral

    %!
    newpath
    300 700 translate 
    0 0 moveto
    
    /span 1 def
    /t -360 def
    /r { t 1 mul} def
    /x { t cos r mul 0.8 mul} def
    /y { t sin r mul 0.8 mul} def
    x y moveto
    720 {/t t span add def
    x y lineto } repeat
    stroke
    
    showpage
    

postscript postscript_math-polar-archimedean-spiral