Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def draw(surf, pos, color="black"): # pos [(x1,y1),(x2,y2)]
- list_ccord=[]
- list_ccord.append([pos[0][0],pos[0][1]])
- list_ccord.append([pos[0][1],pos[1][0]])
- list_ccord.append([pos[1][1],pos[0][0]])
- list_ccord.append([pos[1][0],pos[1][1]])
- alines(surf, color, list_ccord, T_F=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement