How CGA Graphics worked [video]
youtube.com
youtube.com
"The Amstrad used an "enhanced" CGA graphic mode, which could display 640x200 pixels with 16 colors (or grayscale)."
http://www.old-computers.com/museum/computer.asp?c=183&st=1
http://www.nostalgianerd.com/amstrad-pc1512
There were probably at least five pieces of software released which supported this mode. :)
The PC1512 came bundled with the GEM windowing system from Digital Research, including a paint program: http://www.reenigne.org/computer/gempaint.gif as well as a fairly state of the art graphical BASIC: http://www.reenigne.org/computer/basic2.gif, https://www.youtube.com/watch?v=dDL8w_Mi49A (video in EGA though).
I did spent a few hours playing "Defender of the Crown" on them.
I assume this is the same video.
http://trixter.oldskool.org/2014/06/19/8088-domination-post-...
This is accomplished by compiling the video into branch-free code that sends minimal updates to the CGA.
https://news.ycombinator.com/item?id=9338944
http://8088mph.blogspot.com/2015/04/cga-in-1024-colors-new-m...
If the colour displayed onscreen had the red level inverted the options would have been much more erm... palatable.
For an output of (1-r,g,b) you would get some lovely options http://i.imgur.com/rMAr9mU.png
If done at the Digital level flipping the R line of the RGBI You would remain in the standard 16 colours but with better combinations
http://i.imgur.com/2AWs9E7.png
You get a nice blue gradient palette and an earth tone palette (brown,black and green).
It seems like these colors were chosen exactly because when you mixed them you would get nicer colors.
Imagine if CGA cards had full palette control from the start. Four 74189 16x4 bit SRAM chips connected to R2R resistor ladder providing programmable 5-6-5 RGB palette. Would add ~$30 to the BOM in 1981, but SRAM prices fell drastically at that time, two years later it would be single dollars.
Of course, Hercules Graphics Adapter is the one true graphics adapter :-)
Be sure to check out the game Round 42 for another great demonstration of the 160x100x16 mode.
I had access to that Tandy portable - it had the WORST screen ever, but for some reason I have a soft spot for it.
I also liked 2-scanlines-per-character text modes used to hack up graphics modes