Advertisement
ML2030

Untitled

Aug 24th, 2021
1,371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pygame
  2.  
  3. pygame.init()
  4.  
  5. window = pygame.display.set_mode([800, 580])
  6.  
  7. while True:
  8.   window.fill((255, 255 ,255))
  9.   pygame.draw.circle(
  10.   window,
  11.   (255, 255, 0),
  12.   [650, 150],
  13.   70
  14.  )
  15.   pygame.draw.polygon(
  16.   window,
  17.    (255, 0, 0),
  18.    ((100,300),(250,200),(400,300))
  19.  )
  20.   pygame.draw.rect(
  21.   window,
  22.    (0, 0, 0),
  23.    [100, 300, 300, 200],
  24.    3
  25.  )
  26.   pygame.draw.rect(
  27.   window,
  28.    (150, 50, 0),
  29.    [150, 400, 50, 100]
  30.  )
  31.   pygame.draw.rect(
  32.   window,
  33.    (204, 204, 255),
  34.    [250, 370, 100, 70]
  35.  )
  36.  
  37.   pygame.display.update()
  38.  
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement