changed image
This commit is contained in:
parent
150efceafc
commit
00f6fd2e5e
1 changed files with 9 additions and 9 deletions
2
eggs.py
2
eggs.py
|
@ -3,7 +3,7 @@ from time import sleep
|
||||||
|
|
||||||
def r9k(window):
|
def r9k(window):
|
||||||
logging.warn("Look, you found a pepe!")
|
logging.warn("Look, you found a pepe!")
|
||||||
raw_image = urllib.request.urlopen("https://38.media.tumblr.com/avatar_2cd47bc1ad07_128.png").read()
|
raw_image = urllib.request.urlopen("http://img.ifcdn.com/images/620f230fad2806fe5305fac45dd673b8fc005b98c1e3b8584abc9c439b050950_1.jpg").read()
|
||||||
image_file = io.BytesIO(raw_image)
|
image_file = io.BytesIO(raw_image)
|
||||||
image = pygame.transform.scale(pygame.image.load(image_file), window.get_size())
|
image = pygame.transform.scale(pygame.image.load(image_file), window.get_size())
|
||||||
window.blit(image, (0,0))
|
window.blit(image, (0,0))
|
||||||
|
|
Reference in a new issue