Topic: color pallettes and Borland C++


Author: c056jbr@utarlg.uta.edu (John Berry Rogers)
Date: 23 May 91 15:35:31 GMT
Raw View
I know this is probably a FAQ, but I am curious.  I have seen several examples
where the Borland .BGI interfaces are made into C++ objects for use in
programming different projects.  I am in the process of starting to design a
new shareware package, and want to use up to the 256 color limit of the VGA.

Two questions:
1)  To use the color palette(s), how do I change the colors, ie from one shade
    of red to another, say based on the amount of red-blue-green in the color
    itself.  Is this even possible.

2)  Is it possible to fill in a 2D array with some bit value (ie RBG values)
    and use that to generate the screen with the 256 colors?  Is there a limit
    to this, ie number of colors displayed, etc.

I am just learning some of the capabilities of C++, and really would appreciate
any help on this, even if it is to tell me to go read so-and-so reference!
PLEASE Email me the responses in addition to posting, as I am not able to get
up here on the net all that often...

Thanks for all the advance help!
JBR
-----------------------------------------------------------------------------
|  :-) Berry Rogers (UTAMouse) -    The University of Texas at Arlington    |
|      Triangle Fraternity -        Address: C056JBR@utarlg.uta.edu         |
|                                                                           |
|  -- "The less I seek my source for some definitive....                    |
|               The closer I am to fine...."   - Indigo Girls               |
-----------------------------------------------------------------------------