FSK B

>b's weblog

News. Journal. Whatever.

X-Pie Homepage updatedEine Zensur findet statt

Golden Spiral as EPS

Trish needed a Golden Spiral. So I hacked one in PostScript as EPS.

Here you have the result:

%!PS-Adobe-3.0 EPSF-3.0 
%%BoundingBox: 0 0 217 350

% golden spiral
% Copyleft 2009, Volker Birk
% This software is under GNU GPL 2.0

/gs 5 sqrt 1 add 2 div def
/inch { 72 mul } def

/goldenarc {
    0 w w w w arcto
    /w w gs mul w sub def
    currentpoint translate
    -90 rotate
} def

0 350 translate
270 rotate

newpath
0 0 moveto

/w 3 inch def
40 {goldenarc} repeat

stroke
publiziert Sun, 22 Feb 2009 15:25:37 +0100

Zurück zum Blogindex