Skip to content

Instantly share code, notes, and snippets.

View essamamdani's full-sized avatar
🌗
Working from home

Essa Mamdani essamamdani

🌗
Working from home
View GitHub Profile
@essamamdani
essamamdani / pygame.py
Created May 15, 2020 16:12
displaying image
import pygame
pygame.init()
displayWidth = 800
displayHeight = 600
surface= pygame.display.set_mode((displayWidth, displayHeight ))
pygame.display.set_caption('Image')
displayImage = pygame.image.load(r'C:\Users\user\Pictures\image.jpg')
while True :
surface.fill((255,255,255))