colorcir.ps 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. %!
  2. /colorcirsave save def % prevent left over effects
  3. gsave
  4. /Times-Roman findfont 24 scalefont setfont
  5. 72 72 translate 0 0 moveto 1 0 0 setrgbcolor (Red) show
  6. 72 0 translate 0 0 moveto 0 1 0 setrgbcolor (Green) show
  7. 72 0 translate 0 0 moveto 0 0 1 setrgbcolor (Blue) show
  8. 72 0 translate 0 0 moveto 1 1 0 setrgbcolor (Yellow) show
  9. 72 0 translate 0 0 moveto 1 0 1 setrgbcolor (Pink) show
  10. 72 0 translate 0 0 moveto 0 1 1 setrgbcolor (Cyan) show
  11. 72 0 translate 0 0 moveto 0.9 0.9 0.9 setrgbcolor ('White') show
  12. grestore
  13. 0.0 setlinewidth
  14. /length 0.1 def
  15. /width 0.02 def
  16. /hsvcircle {
  17. gsave
  18. /h 0.0 def
  19. 0 4 360 {
  20. pop
  21. gsave
  22. 0.5 0.0 translate
  23. newpath
  24. 0.0 0.0 moveto
  25. length 0.0 lineto
  26. length width lineto
  27. 0.0 width lineto
  28. closepath
  29. h 1.0 1.0 sethsbcolor
  30. fill
  31. %newpath
  32. %0.0 0.0 moveto
  33. %length 0.0 lineto
  34. %length width lineto
  35. %0.0 width lineto
  36. %closepath
  37. %0.0 setgray
  38. %stroke
  39. grestore
  40. /h h 4 360 div add def
  41. 4 rotate
  42. } for
  43. grestore
  44. } def
  45. /graycircle {
  46. gsave
  47. /h -1.0 def
  48. 0 4 360 {
  49. pop
  50. gsave
  51. 0.5 0.0 translate
  52. newpath
  53. 0.0 0.0 moveto
  54. length 0.0 lineto
  55. length width lineto
  56. 0.0 width lineto
  57. closepath
  58. h abs setgray
  59. fill
  60. %newpath
  61. %0.0 0.0 moveto
  62. %length 0.0 lineto
  63. %length width lineto
  64. %0.0 width lineto
  65. %closepath
  66. %0.0 setgray
  67. %stroke
  68. grestore
  69. /h h 8 360 div add def
  70. 4 rotate
  71. } for
  72. grestore
  73. } def
  74. 0.0 setlinewidth
  75. 0.0 setgray
  76. 300 400 translate
  77. 500 500 scale
  78. 30 rotate
  79. 1.0 0.7 scale
  80. -30 rotate
  81. hsvcircle
  82. 0.8 0.8 scale
  83. graycircle
  84. 0.8 0.8 scale
  85. hsvcircle
  86. 0.8 0.8 scale
  87. graycircle
  88. 0.8 0.8 scale
  89. hsvcircle
  90. 0.8 0.8 scale
  91. graycircle
  92. 0.8 0.8 scale
  93. hsvcircle
  94. 0.8 0.8 scale
  95. graycircle
  96. 0.8 0.8 scale
  97. hsvcircle
  98. 0.8 0.8 scale
  99. graycircle
  100. 0.8 0.8 scale
  101. hsvcircle
  102. 0.8 0.8 scale
  103. graycircle
  104. 0.8 0.8 scale
  105. hsvcircle
  106. 0.8 0.8 scale
  107. graycircle
  108. showpage
  109. clear cleardictstack
  110. colorcirsave restore