import pygame
pygame.init()
window_size = (400, 300)
screen = pygame.display.set_mode(window_size)
pygame.display.set_caption("Мое изображение")
screen.fill((255, 255, 255))
rectangle_color = (0, 0, 255)
rectangle_position = (140, 100)
rectangle_size = (90, 90)
pygame.draw.rect(screen, rectangle_color, pygame.Rect(rectangle_position, rectangle_size))
circle_color = (255, 255, 0)
circle_center = (100, 200)
circle_radius = 20
pygame.draw.circle(screen, circle_color, circle_center, circle_radius)
pygame.display.flip()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()
import pygame
pygame.init()
window_size = (400, 300)
screen = pygame.display.set_mode(window_size)
pygame.display.set_caption("Мое изображение")
screen.fill((255, 255, 255))
rectangle_color = (0, 0, 255)
rectangle_position = (140, 100)
rectangle_size = (90, 90)
pygame.draw.rect(screen, rectangle_color, pygame.Rect(rectangle_position, rectangle_size))
circle_color = (255, 255, 0)
circle_center = (100, 200)
circle_radius = 20
pygame.draw.circle(screen, circle_color, circle_center, circle_radius)
pygame.display.flip()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()