home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!olivea!charnel!sifon!CC.UMontreal.CA!pigeons
- From: pigeons@JSP.UMontreal.CA (Pigeon Steven)
- Newsgroups: comp.lang.pascal
- Subject: Re: Faking millions of colors out of 16, and so on
- Message-ID: <1992Dec13.145604.811@cc.umontreal.ca>
- Date: 13 Dec 92 14:56:04 GMT
- References: <1992Dec12.234840.199@athena.mit.edu>
- Sender: news@cc.umontreal.ca (Administration de Cnews)
- Organization: Universite de Montreal
- Lines: 44
-
- In article <1992Dec12.234840.199@athena.mit.edu> acgoldis@athena.mit.edu (Andrew C Goldish) writes:
- >Two things.
- >
- >According to the Borland 6 graphics package and the rules for my monitor, one can
- >set the sixteen colors in the palette to be different things with the
- >SetRGBPalette command. Is there any way one can print sixteen colors, change one
- >of the values, and print a 17th color on the screen without having the pixel
- >originally in the color that was changed change to the new color?
- >
- >Also, how exactly do you get certain colors using Red, Green, and Blue values
- >(i.e. purple, pink salmon, Celtic green, etc.)
- >
- >
- > A. Goldish
- >
- >"A man may be weak, but if he is noble, he may still become king."
-
-
- Well, to find your colors, you can still ftp the little (but usefull) program
- from nic.funet.fi that is called 'cvd' (color variance demo? or something like)
- which permits you to look at constrasts, hues, combinations, and gives you the
- R,G,B compounds of the colors you're playing with. It only require (sp?) a EGA
- card, and ten minutes or less download at 2400 bps. :-) (or about 1 minute
- with more bauds :-) :-) )
-
- Another thing: If you're planning to use SetRGBPalette to change the palette,
- it is not fast enough. What you could do (as Duncan Murdoch already has sugg.)
- is to hook yourself on interrupt level 9 (which is 15, I think, in the inter-
- rupt table of a 80x86) and change the palette for a line. The bug is: if you
- use a, say, 640x480x16 color mode, you'll need 640 different palettes... But,
- since your palettes are small (16 colors), it can hold in a couple of K...
-
-
- Or, you can use nearest-tones dithering... which you will find in "graphic
- gems" that is also ftp-able from garbo.uwasa.fi or nic.funet.fi.
-
- S.
-
-
- --
- ------------------------------------------------------------
- STEVEN PIGEON, a.k.a pigeons@jsp.umontral.ca, planet Earth.
- ==Departement d'informatique et de Recherche Operationnelle=
- == Universite de Montreal==
-