A
A
Alikhan_12021-08-07 10:36:45
Python
Alikhan_1, 2021-08-07 10:36:45

My circle is not drawn, what's the problem?

import pygame
WIDTH = 800
HEIGHT = 1200
FPS = 30
BLACK=(0, 0, 0)
WHITE=(255, 255, 255)
pygame.init()
screen = pygame.display.set_mode((WIDTH, HEIGHT))
clock = pygame.time.Clock()
screen.fill(BLACK)
running = True
while running:
events=pygame.event.get()
pygame.draw.circle(screen, WHITE, (1000, 250) , 30)
pygame.display. update()
for i in events:
if i.type == pygame.QUIT: running
= False
clock.tick(FPS)


pygame.quit()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
U235U235, 2021-08-07
@U235U235

swap
WIDTH = 1200
HEIGHT = 800
everything is drawn, only it does not fit into the window.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question