home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / FGFADE11.ZIP / FADE.DOC < prev    next >
Text File  |  1995-02-13  |  3KB  |  62 lines

  1.                                FADE version 1.1
  2.  
  3. Ted Gruber Software                                      Voice: (702) 735-1980
  4. PO Box 13408                                               FAX: (702) 735-4603
  5. Las Vegas, NV  89112                                       BBS: (702) 796-7134
  6.                                                            CIS:     72000,1642
  7.  
  8. ------------------------------------------------------------------------------
  9.                 FADE:  Performing palette fades with Fastgraph
  10. ------------------------------------------------------------------------------
  11.  
  12. The FADE program shows how to perform 256-color palette fades with Fastgraph
  13. 4.0 or Fastgraph/Light 4.0. The program has two functions, fadein() and
  14. fadeout(), that perform the fades. FADE uses these functions to make three
  15. 256-color images appear and disappear.
  16.  
  17. The fadein() function makes an image appear by gradually changing its colors
  18. from all black (i.e., invisible) to its original colors. This function uses
  19. Fastgraph's fg_pcxpal() function to retrieve the image's original colors from
  20. the PCX file header. After this, fadein() sets all the video DAC regsiters to
  21. zero, which makes every color black, and then displays the PCX image using the
  22. current color values (instead of those stored in the PCX file's palette). The
  23. color values are increased as needed in a loop until they reach their original
  24. values.
  25.  
  26. The fadeout() makes an image disappear by gradually changing its original
  27. colors to black. This function is conceptually much simpler than the companion
  28. fadein() function because the target color values are all zero. The color
  29. values are simply decreased in a loop until they all reach zero.
  30.  
  31. The files in FGFADE11.ZIP are:
  32.  
  33.    FADE.DOC      this file
  34.    FADE.EXE      executable program (created with Turbo Pascal 6.0)
  35.  
  36.    FADE.BAS      BASIC source code
  37.    FADE.C        C source code
  38.    FADE.FOR      FORTRAN source code
  39.    FADE.PAS      Borland/Turbo Pascal source code
  40.  
  41.    BALLOONS.PCX  PCX image files used by FADE.EXE
  42.    MOUSE.PCX
  43.    TOMMY.PCX
  44.  
  45. If you want to re-link the FADE source code, you must have Fastgraph or
  46. Fastgraph/Light. Compilation and linking commands are provided in comments at
  47. the beginning of each source code file. You may use this source code (or
  48. modified versions of it) without charge in your Fastgraph and Fastgraph/Light
  49. applications.
  50.  
  51. You may modify this source code any way you want, but please do not distribute
  52. it in a modified form.
  53.  
  54. The fadein() and fadeout() functions are based on code originally written by
  55. John Wagner, author of the IMPROCES image processing utility (IMPROCES is
  56. available from our technical support BBS).
  57.  
  58. Fastgraph (tm) and Fastgraph/Light (tm) are graphics libraries published by
  59. Ted Gruber Software. For more info, please call, write, or FAX. You can
  60. download the latest evaluation version of Fastgraph/Light from DDBBS at (702)
  61. 796-7134, or from our internet ftp site (ftp.accessnv.com).
  62.