Thread View: comp.std.c++
1 messages
1 total messages
Started by John Berry Rogers
Thu, 23 May 1991 15:38
Color pallettes and Borland C++
Author: John Berry Rogers
Date: Thu, 23 May 1991 15:38
Date: Thu, 23 May 1991 15:38
28 lines
2059 bytes
2059 bytes
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 |
-----------------------------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads