So, I wrote a program that reads in a bitmap and prints to the console using windows.h.
Windows (in the console) allows me to have two colors for each character space - foreground color and background color.
I will limit the 4-bit palette for these colors:
http://www.infotart.com/blog/wp-content/uploads/2008/06/windows_4bit_color_swatches.png
My program works fine for 16 colors, but I had problems getting 256 calculations. (or find out if this is possible)
I need to get an indexed RGB color value (from 256 8-bit colors, something like 224, 64, 0) and display it as two of the 16 available colors, one of which fades out.
The foreground symbol will be one of the ASCII anti-aliasing symbols (I think 176, 177, 178).
So, I believe that each background should have the values R, G, B 0, 128, 255, etc. and the foreground can be 0, 32, 64, 96, 128, 160, 192, 224 or 255
So, if I had the number RGB = 192.0.0, I could set the background RGB = 128.0.0 and in the foreground RGB = 255.0.0 with the ASCII character 176 (with 25% smoothing)
It seems that it would be quite simple if I had a separate anti-aliasing symbol, available for red green and blue separately, but, unfortunately, I do not.
I know that the console is a terrible choice, but I have to try and do it without the help of gdi windows.
I am completely obsessed with trying to understand the algorithm for this, and even have a problem, even if my logic makes sense.
- ? , .