home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7425 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  2.4 KB

  1. Path: sparky!uunet!spool.mu.edu!olivea!charnel!sifon!CC.UMontreal.CA!pigeons
  2. From: pigeons@JSP.UMontreal.CA (Pigeon Steven)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Faking millions of colors out of 16, and so on
  5. Message-ID: <1992Dec13.145604.811@cc.umontreal.ca>
  6. Date: 13 Dec 92 14:56:04 GMT
  7. References: <1992Dec12.234840.199@athena.mit.edu>
  8. Sender: news@cc.umontreal.ca (Administration de Cnews)
  9. Organization: Universite de Montreal
  10. Lines: 44
  11.  
  12. In article <1992Dec12.234840.199@athena.mit.edu> acgoldis@athena.mit.edu (Andrew C Goldish) writes:
  13. >Two things.
  14. >
  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. >Also, how exactly do you get certain colors using Red, Green, and Blue values
  22. >(i.e. purple, pink salmon, Celtic green, etc.)
  23. >
  24. >
  25. >                            A. Goldish
  26. >
  27. >"A man may be weak, but if he is noble, he may still become king."
  28.  
  29.  
  30. Well, to find your colors, you can still ftp the little (but usefull) program
  31. from nic.funet.fi that is called 'cvd' (color variance demo? or something like)
  32. which permits you to look at constrasts, hues, combinations, and gives you the
  33. R,G,B compounds of the colors you're playing with. It only require (sp?) a EGA
  34. card, and ten minutes or less download at 2400 bps. :-) (or about 1 minute 
  35. with more bauds :-) :-) )
  36.  
  37. Another thing: If you're planning to use SetRGBPalette to change the palette,
  38. it is not fast enough. What you could do (as Duncan Murdoch already has sugg.)
  39. is to hook yourself on interrupt level 9 (which is 15, I think, in the inter-
  40. rupt table of a 80x86) and change the palette for a line. The bug is: if you
  41. use a, say, 640x480x16 color mode, you'll need 640 different palettes... But,
  42. since your palettes are small (16 colors), it can hold in a couple of K...
  43.  
  44.  
  45. Or, you can use nearest-tones dithering... which you will find in "graphic
  46. gems" that is also ftp-able from garbo.uwasa.fi or nic.funet.fi.
  47.  
  48.     S.
  49.  
  50.  
  51. -- 
  52. ------------------------------------------------------------
  53.  STEVEN PIGEON, a.k.a pigeons@jsp.umontral.ca, planet Earth.
  54. ==Departement d'informatique et de Recherche Operationnelle=
  55.               == Universite de Montreal==
  56.