Let's Code MS DOS 0x20: Bresenham Line Drawing
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
Other Videos By root42
2023-09-05 | Let's Code MS DOS 0x21: 3D Fixed Point Maths |
2023-08-12 | Repairing a 40 Year Old Commodore Disk Drive |
2023-08-04 | The „Smartphone“ of the 1990s |
2023-07-23 | Game Boy Color: Funny Playing IPS Screen Mod |
2023-07-09 | Our First PC: Highscreen Colani 486SX |
2023-06-05 | Episode VI: Return of the Lötstream |
2023-05-31 | Let's Code x86 Assembly: 0x08 Sizecoding Game Of Life WITH "MUSIC" |
2023-05-25 | The Homebrew Hercules Graphics Card |
2023-05-25 | Today is 5-25 so we format a 5,25“ on the CBM 8050! #floppydisk |
2023-05-23 | Fix It Felix Jr. for the C64 #commodore64 #retrogaming |
2023-05-17 | Let's Code MS DOS 0x20: Bresenham Line Drawing |
2023-05-03 | Let's Code MS DOS 0x1F: Detecting Graphics Cards |
2023-04-26 | EGA Graphics on C64 Monitors |
2023-04-09 | Revision 2023 |
2023-04-05 | Baby AT Testbench by TechAmbrosia |
2023-03-24 | The Pixel Museum in Brussels |
2023-03-22 | Interesting 5.25“ Floppy Drive Mechanism |
2023-03-12 | Repairing a Hercules Graphics Card |
2023-03-06 | RGBtoHDMI for Retro PCs |
2023-02-27 | The PicoGUS lives! |
2023-02-26 | Lötstream: Pico GUS |