Files
LABAn3/kroliklabaN3.py
mokangleb1818-crypto dfe64e6492 Initial commit
2026-03-31 19:04:10 +03:00

58 lines
1.6 KiB
Python

import pygame
import sys
pygame.init()
WIDTH, HEIGHT = 600, 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Кроликкк")
WHITE = (255, 255, 255)
GRAY = (200, 200, 200)
PINK = (255, 180, 180)
BLACK = (0, 0, 0)
BLUE = (100, 150, 255)
running = True
clock = pygame.time.Clock()
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
screen.fill(WHITE)
pygame.draw.ellipse(screen, GRAY, (250, 100, 40, 120))
pygame.draw.ellipse(screen, GRAY, (310, 100, 40, 120))
pygame.draw.ellipse(screen, PINK, (260, 110, 20, 80))
pygame.draw.ellipse(screen, PINK, (320, 110, 20, 80))
pygame.draw.circle(screen, GRAY, (300, 250), 80)
pygame.draw.circle(screen, BLACK, (270, 240), 10)
pygame.draw.circle(screen, BLACK, (330, 240), 10)
pygame.draw.circle(screen, WHITE, (275, 235), 4)
pygame.draw.circle(screen, WHITE, (335, 235), 4)
pygame.draw.circle(screen, PINK, (300, 270), 8)
pygame.draw.arc(screen, BLACK, (285, 275, 30, 20), 3.14, 0, 2)
pygame.draw.line(screen, BLACK, (260, 270), (220, 265), 2)
pygame.draw.line(screen, BLACK, (260, 275), (220, 280), 2)
pygame.draw.line(screen, BLACK, (340, 270), (380, 265), 2)
pygame.draw.line(screen, BLACK, (340, 275), (380, 280), 2)
pygame.draw.ellipse(screen, GRAY, (240, 330, 120, 150))
pygame.draw.ellipse(screen, GRAY, (250, 450, 40, 50))
pygame.draw.ellipse(screen, GRAY, (310, 450, 40, 50))
pygame.draw.circle(screen, WHITE, (300, 470), 20)
pygame.display.flip()
clock.tick(60)
pygame.quit()
sys.exit()