From 00f6fd2e5eb5a0935bfe9f590de401dfe808bd62 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 12 May 2015 12:18:01 +0100 Subject: [PATCH] changed image --- eggs.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/eggs.py b/eggs.py index a35f874..1eddfb3 100644 --- a/eggs.py +++ b/eggs.py @@ -2,12 +2,12 @@ import pygame, logging, urllib.request, io from time import sleep def r9k(window): - logging.warn("Look, you found a pepe!") - raw_image = urllib.request.urlopen("https://38.media.tumblr.com/avatar_2cd47bc1ad07_128.png").read() - image_file = io.BytesIO(raw_image) - image = pygame.transform.scale(pygame.image.load(image_file), window.get_size()) - window.blit(image, (0,0)) - font = pygame.font.SysFont(None, 30, bold=False) - window.blit(font.render("A rare pepe has been found. Alert R9k", True, (0,0,0)), (window.get_width()/2-175, window.get_height()/2)) - pygame.display.update() - sleep(9) \ No newline at end of file + logging.warn("Look, you found a pepe!") + raw_image = urllib.request.urlopen("http://img.ifcdn.com/images/620f230fad2806fe5305fac45dd673b8fc005b98c1e3b8584abc9c439b050950_1.jpg").read() + image_file = io.BytesIO(raw_image) + image = pygame.transform.scale(pygame.image.load(image_file), window.get_size()) + window.blit(image, (0,0)) + font = pygame.font.SysFont(None, 30, bold=False) + window.blit(font.render("A rare pepe has been found. Alert R9k", True, (0,0,0)), (window.get_width()/2-175, window.get_height()/2)) + pygame.display.update() + sleep(9) \ No newline at end of file