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.rect(sc, (255, 0, 0),
- (1, 1, x - 1, y - 1))
- pygame.display.flip()
- while pygame.event.wait().type != pygame.QUIT:
- pass
- pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement