home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7438 < prev    next >
Encoding:
Text File  |  1992-12-13  |  2.1 KB  |  47 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!bruny.cc.utas.edu.au!u910826
  3. From: u910826@bruny.cc.utas.edu.au (Louis        siuoL)
  4. Subject: Re: Faking millions of colors out of 16, and so on
  5. Message-ID: <u910826.724300353@bruny>
  6. Sender: news@newsroom.utas.edu.au
  7. Organization: University of Tasmania, Australia.
  8. References: <1992Dec12.234840.199@athena.mit.edu> <dmurdoch.228.724214491@mast.queensu.ca>
  9. Date: Mon, 14 Dec 1992 02:32:33 GMT
  10. Lines: 35
  11.  
  12. dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
  13.  
  14. >In article <1992Dec12.234840.199@athena.mit.edu> acgoldis@athena.mit.edu (Andrew C Goldish) writes:
  15. >>According to the Borland 6 graphics package and the rules for my monitor, one can
  16. >>set the sixteen colors in the palette to be different things with the
  17. >>SetRGBPalette command.  Is there any way one can print sixteen colors, change one
  18. >>of the values, and print a 17th color on the screen without having the pixel
  19. >>originally in the color that was changed change to the new color?
  20.  
  21. >Only if you're very fast.  The EGA or VGA hardware standard that the 16 
  22. >colour modes are using is only able to display 16 different colours 
  23. >simultaneously.  However, pixels only get updated on the screen 50 or 60 
  24. >times per second.  If you like, you can change the palette after a pixel has 
  25. >been drawn, write a different pixel in a 17th colour, and change palette the
  26. >back by the time the card refreshes the first pixel.  
  27.  
  28. very possible, I just did that in a 256 colour mode, producing 728 colours on screen. (on any vga, with an 8mhz or more AT).
  29.  
  30. >Soon after the EGA came out there was a program published in PC Magazine 
  31. >that could use this technique to display 64 colours simultaneously on a 6 
  32. >Mhz AT; I'd guess a modern PC would have enough time left over to get some 
  33. >useful work done at the same time it was flipping the palette around like 
  34. >this.
  35.  
  36. [stuff deleted]
  37.  
  38. >Duncan Murdoch
  39. >dmurdoch@mast.queensu.ca
  40.  
  41. Louis
  42. --
  43. Louis Solomon - a student at The University of Tasmania
  44.       e-mail: u910826@bruny.cc.utas.edu.au
  45.  
  46. "If wishes were fishes, we'd all cast nets" - Dune
  47.