Hi I'm completely new to PS and would really appreciate some advice.
I have a PS which generates a design and creates a PDF but it centers the design to the bottom left of the file and omits the other 3/4. Can anyone help please?
The Code is:
%!PS
/golden 137.50776 def % super dooper magic number.
/rate 18 360 div def % base spiral expansion rate
/divergence 0.5 def % exponent - 1.0 is linear, 0.5 is best
/sweep 160000 def % total number of degrees in spiral
/inside 0 golden mul def % size of hole in middle
/dotrad 0.2 def % size of seeds
/dot1 {newpath dotrad 0 360 arc fill} def % dot utility routine
/fixpack {dup 0 ge {divergence exp} {neg % packing utility routine
divergence exp neg} ifelse} def
/drawsunflower {inside golden sweep { % start for loop
dup dup rate mul fixpack % copy vector
exch cos mul exch dup % find & save x position
rate mul fixpack exch sin mul % find y position
dot1 } for } def % draw dot; end loop & proc
drawsunflower % draw the sunflower
showpage quit % and print it
I have a PS which generates a design and creates a PDF but it centers the design to the bottom left of the file and omits the other 3/4. Can anyone help please?
The Code is:
%!PS
/golden 137.50776 def % super dooper magic number.
/rate 18 360 div def % base spiral expansion rate
/divergence 0.5 def % exponent - 1.0 is linear, 0.5 is best
/sweep 160000 def % total number of degrees in spiral
/inside 0 golden mul def % size of hole in middle
/dotrad 0.2 def % size of seeds
/dot1 {newpath dotrad 0 360 arc fill} def % dot utility routine
/fixpack {dup 0 ge {divergence exp} {neg % packing utility routine
divergence exp neg} ifelse} def
/drawsunflower {inside golden sweep { % start for loop
dup dup rate mul fixpack % copy vector
exch cos mul exch dup % find & save x position
rate mul fixpack exch sin mul % find y position
dot1 } for } def % draw dot; end loop & proc
drawsunflower % draw the sunflower
showpage quit % and print it