Skip to content

Instantly share code, notes, and snippets.

@LevBravE
Created April 20, 2020 21:02
Show Gist options
  • Save LevBravE/ce717cbbc8419e00dc03a25339decf10 to your computer and use it in GitHub Desktop.
Save LevBravE/ce717cbbc8419e00dc03a25339decf10 to your computer and use it in GitHub Desktop.
import pygame
size = width, height = 301, 301
screen = pygame.display.set_mode(size)
clock = pygame.time.Clock()
running = True
while running:
screen.fill((0, 0, 0))
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
if event.type == pygame.MOUSEMOTION:
pygame.draw.circle(screen, (0, 0, 255), event.pos, 20)
pygame.display.flip()
clock.tick(50)
pygame.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment