Skip to content

Commit 6f381df

Browse files
committed
Fix function call in main block
1 parent 4a91773 commit 6f381df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphics/digital_differential_analyzer_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def digital_differential_analyzer_line(
4242
y1 = int(input("Enter the y-coordinate of the starting point: "))
4343
x2 = int(input("Enter the x-coordinate of the ending point: "))
4444
y2 = int(input("Enter the y-coordinate of the ending point: "))
45-
coordinates = digital_differential_analyzer_line(x1, y1, x2, y2)
45+
coordinates = digital_differential_analyzer_line((x1, y1), (x2, y2))
4646
x_points, y_points = zip(*coordinates)
4747
plt.plot(x_points, y_points, marker="o")
4848
plt.title("Digital Differential Analyzer Line Drawing Algorithm")

0 commit comments

Comments
 (0)