File:  [NeXTSTEP 3.3 examples] / Examples / PostScript / Tree.eps
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:49:00 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

%!PS-Adobe-2.0 EPSF-2.0
%%Title: Tree.eps
%%Creator: Adobe Systems Inc
%%Pages: 0 1
%%BoundingBox: 0 0 480 290
%%EndComments

% From pg 74 of the "Blue Book"
% Change parameters for wild effects...

/depth 0 def
/maxdepth 10 def
/down {/depth depth 1 add def} def
/up   {/depth depth 1 sub def} def

/doLine % Vertical line
{0 144 rlineto currentpoint stroke translate 0 0 moveto}
def

/fractArrow 
{gsave 0.65 0.65 scale 10 setlinewidth
 down doLine
 depth maxdepth le 
  {135 rotate fractArrow -270 rotate fractArrow}
 if
 up grestore}
def

% "Main" program
240 0 moveto 3 3 scale fractArrow 0.5 setgray stroke 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.