From c243f5146fc11ee1156a04d48d45f2553764cfbe Mon Sep 17 00:00:00 2001 From: 24_PolujanovVE <24_PolujanovVE@iux.local> Date: Wed, 4 Mar 2026 13:07:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=20task.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task1.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 task1.py diff --git a/task1.py b/task1.py new file mode 100644 index 0000000..508f513 --- /dev/null +++ b/task1.py @@ -0,0 +1,35 @@ +import pygame +from pygame.draw import * + +pygame.init() + +FPS = 30 +screen = pygame.display.set_mode((1000, 1000)) +a = 30 +dx = 80 +y = 450 + +circle(screen, (210, 210, 80), (500, 500), 200) +circle(screen, (255, 255, 255), (500, 500), 200, 2) +circle(screen, (255, 0, 0), (500 - dx, y), a) +circle(screen, (255, 0, 0), (500 + dx, y), a) +circle(screen, (0, 0, 0), (500 - dx, y), 10) +circle(screen, (0, 0, 0), (500 + dx, y), 10) +circle(screen, (255, 255, 255), (500 - dx, y), a, 2) +circle(screen, (255, 255, 255), (500 + dx, y), a, 2) + +polygon(screen, (0, 0, 255), [(100, 120), (120, 140), (140, 120), (120, 100)]) + + + +pygame.display.update() +clock = pygame.time.Clock() +finished = False + +while not finished: + clock.tick(FPS) + for event in pygame.event.get(): + if event.type == pygame.QUIT: + finished = True + +pygame.quit()