Advertisement
niromru

Введение ---> Крест

Jan 26th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 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.line(sc, (255, 255, 255),
  9.                  [0, 0],
  10.                  [x, y],
  11.                  5)
  12. pygame.draw.line(sc, (255, 255, 255),
  13.                  [x, 0],
  14.                  [0, y],
  15.                  5)
  16. pygame.display.flip()
  17. while pygame.event.wait().type != pygame.QUIT:
  18.     pass
  19. pygame.quit()
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement