Skip to content

Commit f34960f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5234d02 commit f34960f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphics/digital_differential_analyzer_line_drawing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import matplotlib.pyplot as plt
22
from typing import list, tuple
33

4+
45
def digital_differential_analyzer_line(
56
x1: int, y1: int, x2: int, y2: int
67
) -> tuple[list[int], list[int]]:
@@ -48,6 +49,7 @@ def digital_differential_analyzer_line(
4849

4950
return x_points, y_points
5051

52+
5153
if __name__ == "__main__":
5254
# Input the coordinates of the two endpoints of the line
5355
x1 = int(input("Enter the x-coordinate of the starting point: "))

0 commit comments

Comments
 (0)