Let's Code MS DOS 0x20: Bresenham Line Drawing

Channel:
Subscribers:
7,930
Published on ● Video Link: https://www.youtube.com/watch?v=pMZ-nWpHJdo



Duration: 37:53
789 views
55


If you want to do graphics programming at some point or other you will have to draw or at least compute straight lines. Those can be use for many things: simple 2D primitives, 3D wireframe graphics, UI elements, or linear motion of sprites and objects. There is a very fast algorithm developed originally by the mathematician Jack E. Bresenham. Its main advantage is that it is very simple and does not require any floating point arithmetics. Which is a good thing on old and slow DOS machines. Let’s investigate this algorithm and code up a nice screensaver!

Support me on Patreon: https://www.patreon.com/root42
Support me on Ko-Fi: https://ko-fi.com/root42
Support me on PayPal: https://paypal.me/ArneSchmitz
Support me on YouTube: https://www.youtube.com/channel/UCPjFa_UZBUDzdJTIEdyGjIQ/join

Music: A Little Wonder by Spino2006

Source Code: https://gist.github.com/root42/9268f4497e3f6f43babce8c88e18407d