Advertisement
niromru

Введение ---> Прямоугольник

Jan 26th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import pygame
  2.  
  3. x = int(input())
  4. y = int(input())
  5. size = width, height = x, y
  6. sc = pygame.display.set_mode(size)
  7.  
  8. pygame.draw.rect(sc, (255, 0, 0),
  9.                  (1, 1, x - 1, y - 1))
  10. pygame.display.flip()
  11. while pygame.event.wait().type != pygame.QUIT:
  12.     pass
  13. pygame.quit()
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement