[A B C D]
[B A D C]
[C D A B]
[D C B A] A and C shift from left to right and B and D shift one place to the left. When they fall off (left or right) they continue on the other side. So the new code looks like:
Code:
polypoints = [(33, 24), (0, 20), (32, 13), (28, 15)] temppoints = [0,0,0,0]
Leave a comment: