Skip to content
Snippets Groups Projects
Commit fa230e6f authored by gawen.ackerman's avatar gawen.ackerman :robot:
Browse files

FIX : Use of a % to restrain the rotation degrees between 0 and 360

parent 72117469
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ def adjust_rotation(event):
y_theta += 5
else:
y_theta -= 5
print(f"Rotation Angle (Y): {y_theta}°")
y_theta %= 360
def draw_center_and_arrows(canvas):
CIRCLE_RADIUS = 20
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment