home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 097.lha / fspots.doc < prev    next >
Text File  |  1986-11-20  |  1KB  |  38 lines

  1.  
  2.     FSPOTS is a replacement for the painfully slow "spots" demo on
  3. the workbench disk. It uses a high-preformance ellipse generator and
  4. generates an average of 63 ellipses per second on a 640x200 workbench
  5. window. Besides being a lot faster, it is also much smaller (even though
  6. it contains its own ellipse generator).
  7.     This program probably cannot be sped up by more than 15%.
  8. I think that the method used is the best way to use the blitter to aid
  9. in the generation of filled ellipses in Intuition windows:
  10.  
  11.     (1) clear an area in a temporary raster equal to the size of
  12.     the upper half of the ellipse
  13.  
  14.     (2) Draw the outline of the upper half of the ellipse in the
  15.     temprast, generating 1 dot per scanline. Use symetry for
  16.     the right and left halves.
  17.  
  18.     (3) Fill the half ellipse in the raster with the blitter.
  19.  
  20.     (4) Use the blitter to mirror the filled top half down into the
  21.     bottom half.
  22.  
  23.     (5) Use BltTemplate or BltPattern to copy the raster into the
  24.     target rastport.
  25.  
  26.     The only problem with this demo is that it is TOO fast! The ellipses
  27. flicker a lot because the pixel values are continually being overwritten.
  28. The ellipses don't flash any more than the one in the normal spots demo, but
  29. the pixels don't stay stable for very long.
  30.  
  31.     This program may be freely distributed.
  32.  
  33.         Chris Green
  34.         Prospect Software
  35.         P.O. Box 343
  36.         Champaign, IL 61820-3403
  37.  
  38.