Actualiser circle.py

Signed-off-by: Anri <kennel.anri@tutanota.com>
This commit is contained in:
Mylloon 2024-06-07 11:51:56 +02:00
parent 3cc9a5526c
commit f776662049
Signed by: Forgejo
GPG key ID: E72245C752A07631

View file

@ -2,11 +2,8 @@ from pyautogui import moveTo, size as screen_size, position
from time import sleep from time import sleep
from math import radians, cos, sin from math import radians, cos, sin
def circle(radius, x, y): def circle(radius, base_x, base_y):
base_x = x previous_x, previous_y = base_x, base_y
base_y = y
previous_x, previous_y = position()
threshold = 50 threshold = 50
while True: while True: