Xref: utzoo alt.msdos.programmer:2728 comp.std.c++:927 comp.lang.c++:13602 Path: utzoo!utgpu!cs.utexas.edu!cse!utarlg.uta.edu!c056jbr From: c056jbr@utarlg.uta.edu (John Berry Rogers) Newsgroups: alt.msdos.programmer,comp.std.c++,comp.lang.c++ Subject: Color pallettes and Borland C++ Message-ID: <1991May23.143835.21762@cse.uta.edu> Date: 23 May 91 14:31:39 GMT Sender: John Berry Rogers Reply-To: c056jbr@utarlg.uta.edu Organization: The University of Texas at Arlington Lines: 28 News-Software: VAX/VMS VNEWS 1.3-4 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 | -----------------------------------------------------------------------------