Bresenham
goal
You will implement the integer first-octant form of Bresenham's line rasteriser. The loop will precompute dx, d2x and d2y, maintain the scaled error yf, and use the strict yf > dx decision instead of carrying yi and rounding it. Your integer trace for a first-octant segment should match the site's Bresenham tracer exactly, including threshold ties. You will then add the taught floating-endpoint initialisation and identify how the driving coordinate or step direction must change outside the first octant.