draw.ps 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. %
  2. % Version 3.3.2 drawing procedures for dpost. Automatically pulled in when
  3. % needed.
  4. %
  5. /inpath false def
  6. /savematrix matrix def
  7. /Dl {
  8. inpath
  9. {neg lineto pop pop}
  10. {newpath neg moveto neg lineto stroke}
  11. ifelse
  12. } bind def
  13. /De {
  14. /y1 exch 2 div def
  15. /x1 exch 2 div def
  16. /savematrix savematrix currentmatrix def
  17. neg exch x1 add exch translate
  18. x1 y1 scale
  19. 0 0 1 0 360
  20. inpath
  21. {1 0 moveto arc savematrix setmatrix}
  22. {newpath arc savematrix setmatrix stroke}
  23. ifelse
  24. } bind def
  25. /Da {
  26. /dy2 exch def
  27. /dx2 exch def
  28. /dy1 exch def
  29. /dx1 exch def
  30. dy1 add neg exch dx1 add exch
  31. dx1 dx1 mul dy1 dy1 mul add sqrt
  32. dy1 dx1 neg atan
  33. dy2 neg dx2 atan
  34. inpath
  35. {arc}
  36. {newpath arc stroke}
  37. ifelse
  38. } bind def
  39. /DA {
  40. /dy2 exch def
  41. /dx2 exch def
  42. /dy1 exch def
  43. /dx1 exch def
  44. dy1 add neg exch dx1 add exch
  45. dx1 dx1 mul dy1 dy1 mul add sqrt
  46. dy1 dx1 neg atan
  47. dy2 neg dx2 atan
  48. inpath
  49. {arcn}
  50. {newpath arcn stroke}
  51. ifelse
  52. } bind def
  53. /Ds {
  54. /y2 exch def
  55. /x2 exch def
  56. /y1 exch def
  57. /x1 exch def
  58. /y0 exch def
  59. /x0 exch def
  60. x0 5 x1 mul add 6 div
  61. y0 5 y1 mul add -6 div
  62. x2 5 x1 mul add 6 div
  63. y2 5 y1 mul add -6 div
  64. x1 x2 add 2 div
  65. y1 y2 add -2 div
  66. inpath
  67. {curveto}
  68. {newpath x0 x1 add 2 div y0 y1 add -2 div moveto curveto stroke}
  69. ifelse
  70. } bind def