Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %%BoundingBox: xmin ymin xmax ymax
  2. %%BeginProlog
  3. /Times-Roman findfont % get the basic font
  4. 24 scalefont % scale the font to 12 points
  5. setfont % make it the current font
  6.  
  7. /arrowhead {% stack: s x1 y1, current point: x0 y0
  8. gsave
  9. currentpoint % s x1 y1 x0 y0
  10. 4 2 roll exch % s x0 y0 y1 x1
  11. 4 -1 roll exch % s y0 y1 x0 x1
  12. sub 3 1 roll % s x1-x2 y0 y1
  13. sub exch % s y0-y1 x1-x2
  14. atan rotate % rotate over arctan((y0-y1)/(x1-x2))
  15. dup scale % scale by factor s
  16. -7 2 rlineto 1 -2 rlineto -1 -2 rlineto
  17. closepath fill % fill arrowhead
  18. grestore
  19. newpath
  20. } def
  21.  
  22. %%EndProlog
  23.  
  24. newpath
  25. 80 650 moveto 300 650 lineto stroke
  26. newpath 300 650 moveto 3 -6000 800 arrowhead
  27.  
  28. newpath
  29. 100 630 moveto 100 820 lineto stroke
  30. newpath 100 820 moveto 3 100 -4500 arrowhead
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement