Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- x = int(input())
- y = int(input())
- size = width, height = x, y
- sc = pygame.display.set_mode(size)
- pygame.draw.line(sc, (255, 255, 255),
- [0, 0],
- [x, y],
- 5)
- pygame.draw.line(sc, (255, 255, 255),
- [x, 0],
- [0, y],
- 5)
- pygame.display.flip()
- while pygame.event.wait().type != pygame.QUIT:
- pass
- pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement