[Graphics] Rasterization Using Bresenham Algorithm and Scanline Algorithm

Опубликовано: 05 Июль 2026
на канале: yubin yang
12
0

Bresenham algorithm is the fastest algorithm for drawing straight lines on a pixel grid (using only integers).
Scanline Algorithm is commonly used to fill the interior of polygons by drawing horizontal scanlines between edges.
In this project, I implemented basic rasterization techniques in Python using Pygame by applying Bresenham Algorithm and the Scanline Algorithm.
The goal was to manually draw geometric shapes using lines and fill their interiors with color.
I learned how rendering and polygon filling work internally in graphics systems.