Skip to content

Commit

Permalink
Fix function call in main block
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyizheng02 committed Dec 31, 2024
1 parent 4a91773 commit 6f381df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/digital_differential_analyzer_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def digital_differential_analyzer_line(
y1 = int(input("Enter the y-coordinate of the starting point: "))
x2 = int(input("Enter the x-coordinate of the ending point: "))
y2 = int(input("Enter the y-coordinate of the ending point: "))
coordinates = digital_differential_analyzer_line(x1, y1, x2, y2)
coordinates = digital_differential_analyzer_line((x1, y1), (x2, y2))
x_points, y_points = zip(*coordinates)
plt.plot(x_points, y_points, marker="o")
plt.title("Digital Differential Analyzer Line Drawing Algorithm")
Expand Down

0 comments on commit 6f381df

Please sign in to comment.