Link to home
Start Free TrialLog in
Avatar of enigmastermind
enigmastermind

asked on

Setting 0-255 RGB Intensity in a 256 Color Palette

Hello,
I am an amateur C/C++ programmer currently programming for Dos in MSVC 1.52 without MFC support.
I would like to know of a way to remap a 256-color screen palette, so that each color is composed of a RGB triplet.
However, the way that I found to do this only allows to set a 0-63 value for each RGB component.
What procedure do I need to use in order to be able to set each RGB component in a range of 0-255?

Thanks in advance to anyone who helps me out,
Sincerely,
EnigMasterMind.
ASKER CERTIFIED SOLUTION
Avatar of AVaulin
AVaulin
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mosfet
mosfet

The reason you can't find a way to have an RGB value of 0-255 in 256 color mode is because there isn't one. RGB values of 0-63 define 256 colors. RGB values of 0-255 define Truecolor 16.7 million colors. Of course this is going to be SVGA.