0

By default we have access to only 16 color while using graphics.h header file.

Is there any way I can manually add or select colors with the help of their hex code in Turbo C++ to draw some text/graphics?

genpfault
  • 49,394
  • 10
  • 79
  • 128
  • palette can be changed each color is programable usualy with 6 bits per channel so you got 262144 colors to chose from. If you want more than 16 colors use 256 color mode or the high/true color modes 15/16 bpp and 24/32 bpp but you would need VESA for those – Spektre Sep 06 '19 at 10:56
  • I dig up the palette settings [Reading the RGB values of the console color palette](https://stackoverflow.com/a/19642738/2521214) for the 16 and 256 CGA/EGA/VGA color modes – Spektre Sep 06 '19 at 11:17

0 Answers0