graphics.bresenham_line_basic ============================= .. py:module:: graphics.bresenham_line_basic .. autoapi-nested-parse:: Classic Bresenham's Line Drawing Algorithm ------------------------------------------ Draws a line between two points (x1, y1) and (x2, y2) for slope 0 ≤ m ≤ 1, without floating-point operations. Reference : https://www.geeksforgeeks.org/dsa/bresenhams-line-generation-algorithm/ >>> classic_bresenham_line((0, 0), (5, 3)) [(0, 0), (1, 1), (2, 1), (3, 2), (4, 2), (5, 3)] Attributes ---------- .. autoapisummary:: graphics.bresenham_line_basic.x1 Functions --------- .. autoapisummary:: graphics.bresenham_line_basic.classic_bresenham_line Module Contents --------------- .. py:function:: classic_bresenham_line(p1: tuple[int, int], p2: tuple[int, int]) -> list[tuple[int, int]] .. py:data:: x1