Skip to content

Commit

Permalink
adding a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
villares authored Oct 21, 2023
1 parent e19be83 commit c1456f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 2023/sketch_2023_10_21/sketch_2023_10_21.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def draw():


def mouse_dragged():

# adds a tuple with the mouse coordinates if the poly list is empty
# or if the x, y in poly[-1] are far enough from the mouse
if not poly or dist(poly[-1][0], poly[-1][1], mouse_x, mouse_y) > MINIMUM_DIST:
poly.append((mouse_x, mouse_y))

Expand Down

0 comments on commit c1456f0

Please sign in to comment.