Watch the video
Get the code from my Github repo
When IBM created the original VGA adaptor, they never intended it to produce high colour real time graphics. However by cleverly altering the card it is possible to unlock an undocumented video mode known simply as Mode X.
I came across the Graphics Programming Black Book by Michael Abrash and printed out chapter 49 to read, which describes how this mysterious Mode-X actually works, including source code to play with.