Advertisement
fevzi02

Untitled

Oct 20th, 2022 (edited)
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def draw(surf, pos, color="black"): # pos [(x1,y1),(x2,y2)]
  2. list_ccord=[]
  3. list_ccord.append([pos[0][0],pos[0][1]])
  4. list_ccord.append([pos[0][1],pos[1][0]])
  5. list_ccord.append([pos[1][1],pos[0][0]])
  6. list_ccord.append([pos[1][0],pos[1][1]])
  7. alines(surf, color, list_ccord, T_F=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement