20 years ago I learned a lot of basic graphics programming techniques from this wonderful set of tutorials. I'm amazed it's still up! It's DOS and VGA oriented but the techniques still generally apply.
Baahaaha the first "quick start" instruction is to install DOSBox. 😅
Another classic, the PC Game Programmer's Encyclopedia:http://qzx.com/pc-gpe/