summaryrefslogtreecommitdiff
path: root/support/lametex/page/wigglies.ps
blob: 8f54b6bfb34d42e2b8a9f8f13618f20e3b8f6ec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
formatdict begin

/BIG 1073741824 def

% Gives a random number between 0 and N
%   N   Random  random-number
/Random
{
   rand BIG div mul 2 div
} bind def 

/foo 0 def

/SHOWIT
{
  dup stringwidth pop dup 2 div
  gsave
     dup 0 rmoveto
     /foo foo 1 add def
     foo 15 div dup Random exch 2 div sub rotate
     neg 0 rmoveto exch show
  grestore
  0 rmoveto
} bind def

end