Skip to content

Instantly share code, notes, and snippets.

@KUNAL1612
Last active March 27, 2019 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KUNAL1612/6c23369addf129b791e8fff8a4588bd2 to your computer and use it in GitHub Desktop.
Save KUNAL1612/6c23369addf129b791e8fff8a4588bd2 to your computer and use it in GitHub Desktop.
import pygame
import sys
def main():
pygame.init()
screen=pygame.display.set_mode((1280,720))
blue=(0,0,255)
while True:
ev=pygame.event.poll()
if ev.type==pygame.QUIT:
break
screen.fill((255,255,255))
pygame.draw.rect(screen, blue, (0,100,300,300), 2)
pygame.draw.rect(screen, blue, (980,100,300,300), 2)
pygame.draw.lines(screen, blue, False, [(300,250),(980,250)], 2)
pygame.display.update()
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment