home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 December / simtel1292_SIMTEL_1292_Walnut_Creek.iso / msdos / ega / egacolrs.arc / EGACOLRS.DOC < prev   
Text File  |  1989-03-10  |  3KB  |  55 lines

  1.  
  2. EGACOLRS by Mark Adler  Pasadena, CA  1988, 1989.
  3.  
  4. EGACOLRS displays all 64 possible colors at once on the screen.  The
  5. cursor keys can be used to point to a specific color and that color's
  6. byte value (as would be used in a palette set) is shown in hexadecimal
  7. on the screen.
  8.  
  9. To use EGACOLRS, simply type EGACOLRS.  To get out of EGACOLRS, use Q,
  10. q, or Esc.  EGACOLRS will run on either an EGA or VGA compatible video
  11. adapter.
  12.  
  13. Use the cursor keys to move around the 8x8 array of blocks.  The byte
  14. value for the selected block will be shown in the lower right corner.
  15. The Home, End, PgUp, and PgDn keys will move to the left, right, top,
  16. and bottom (respectively) of the array.  The selected block will blink,
  17. unless it is the black block, in which case you can't tell it is
  18. blinking since the background is black (but it really is blinking in
  19. some metaphysical sense).
  20.  
  21. Hitting the space bar will permute the axes of the colors.  Perhaps this
  22. requires some explanation.  The 64 colors can be viewed as a cube made
  23. of 64 smaller cubes with four cubes to a side of the larger cube.  Each
  24. side of the cube is a color (red, green, and blue), and as you move
  25. along and edge, you are increasing or decreasing the intensity of that
  26. color.  Each color has two bits assigned to it, hence four intensities
  27. per color.  This cube is mapped onto the EGACOLRS screen as four groups
  28. of 4x4 blocks.  The top row of the upper left group is the first axis
  29. (initially blue), the left column of the upper left group is the second
  30. axis (initially green), and the upper left boxes in each group is the
  31. third axis (initially red).  The space bar steps through the six
  32. possible selections of assigning colors to axes.  In this way, colors
  33. that are "similar" can be brought next to each other in the same group
  34. by using the space bar.
  35.  
  36. Those who know a little about the EGA will immediately realize that such
  37. a program cannot exist, since the EGA can only display 16 different
  38. colors at one time.  That is true, but this program makes the most out
  39. of the phrase "at one time".  The way EGACOLRS works is by changing the
  40. EGA's palette while the electron beam is moving down the screen.  The
  41. palette is changed between every row of blocks by very carefully
  42. watching the horizontal retrace (available on an EGA port) and counting
  43. scan lines.  This program has been tested on the slowest PC's (4.77 MHz
  44. 8088 machines).
  45.  
  46. Feel free to send any problems with or comments on EGACOLRS to:
  47.  
  48.         Mark Adler
  49.         P.O. Box 60998
  50.         Pasadena, CA  91106
  51.  
  52.         bitnet: madler@hamlet
  53.         arpa:   madler@hamlet.caltech.edu
  54.  
  55.