home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 231.lha / dither8.doc < prev    next >
Text File  |  1989-04-12  |  2KB  |  35 lines

  1.  
  2. m            DITHER-DEMO 8
  3.  
  4.     Dithering is a technique used to fool the human eye into seeing
  5. more colors than are actually being displayed. Dithering works by placing
  6. different colors so close together that the eye 'mixes' them and perceives
  7. a third color. The dither demo program opens a high resolution interlaced
  8. screen that uses two bit-plans: it is limited to display 4 colors, just
  9. like a standard WorkBench screen. Three of these four colors ('white' the
  10. background color is not used) are mixed to yield 9 different 'perceived'
  11. colors. By using a trick of the Amiga hardware we are able to change
  12. the color palette many times during a display field, which lets us use
  13. a different set of 4 colors on EVERY horizontal line. The demo program
  14. only changes the color palette once every 4 lines, giving us 9 colors
  15. per row by 80 rows, or over 1000 colors! This program is the latest in
  16. a series of graphics demos, and the first to use 'animation'.
  17.  
  18.     Graphics programming using dithering is not nearly as complex
  19. as programming using the Amiga's 'Hold and Modify' (or HAM) mode, so it
  20. provides an economical way to increase the number of displayable colors
  21. without using a lot of memory and caffeine. You'll notice that the demo 
  22. program is just over 3000 bytes long; it was written in 'C' and could 
  23. easily be reduced further in assembly language.
  24.  
  25.     This demo program is Copyright © 1989 by Lake Forest Logic Inc.,
  26. publisher of The Disk Mechanic utility package for the Amiga.
  27. Permission is hereby granted to freely re-distribute the program provided
  28. this document file accompanies it and neither file is modified. 
  29.  
  30.         3/15/89  Erik C. Quackenbush
  31.  
  32.     mCall the Lake Forest Logic BBS at (312)680-0590.
  33.      All Amiga, 24 hours, 2400 baud, 20 mb on-line storage.
  34.             PC-PURSUITABLE!
  35.